rsyslog needs to use the imjournal module to communicate with
systemd-journald. Copy the imjournal lines from the system's
/etc/rsyslog.conf if they exist.

Signed-off-by: Jeffrey Bastian <jbast...@redhat.com>
---
 testcases/kernel/syscalls/syslog/syslog-lib.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/syscalls/syslog/syslog-lib.sh 
b/testcases/kernel/syscalls/syslog/syslog-lib.sh
index ef33517aa92b..4a6514a3114e 100755
--- a/testcases/kernel/syscalls/syslog/syslog-lib.sh
+++ b/testcases/kernel/syscalls/syslog/syslog-lib.sh
@@ -72,8 +72,10 @@ setup()
        elif [ "$SYSLOG_DAEMON" = "rsyslog" ]; then
                CONFIG_FILE="/etc/rsyslog.conf"
                log_socket=$(grep -ho "^\$SystemLogSocketName .*" -r 
/etc/rsyslog.conf /etc/rsyslog.d/ | head -1)
+               systemd_journal=$(grep -hoi "^[^#].*imjournal.*" -r 
/etc/rsyslog.conf /etc/rsyslog.d/)
                RSYSLOG_CONFIG=$(cat <<EOF
 \$ModLoad imuxsock.so
+$systemd_journal
 $log_socket
 EOF
 )
-- 
1.9.4

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to