]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
systemd: enable forwarding messages to syslog daemon ChenQi/systemd-misc-fixes
authorChen Qi <Qi.Chen@windriver.com>
Mon, 1 Sep 2014 08:44:26 +0000 (04:44 -0400)
committerChen Qi <Qi.Chen@windriver.com>
Wed, 3 Sep 2014 07:05:44 +0000 (15:05 +0800)
In systemd_216, journald by default doesn't forward messages to
syslog daemon. This breaks the oeqa testing cases. So we enable
forwarding the messages for now.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
meta/recipes-core/systemd/systemd_216.bb

index 929b8aef25bcbee997e338f50c90e15123884c9d..a7fd71edd0a6447988ea958f877a94ca4a49c949 100644 (file)
@@ -143,6 +143,9 @@ do_install() {
        ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/poweroff.target.wants/systemd-update-utmp-runlevel.service
        ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/reboot.target.wants/systemd-update-utmp-runlevel.service
        ln -sf ../systemd-update-utmp-runlevel.service ${D}${systemd_unitdir}/system/rescue.target.wants/systemd-update-utmp-runlevel.service
+
+       # Enable journal to forward message to syslog daemon
+       sed -i -e 's/.*ForwardToSyslog.*/ForwardToSyslog=yes/' ${D}${sysconfdir}/systemd/journald.conf
 }
 
 do_install_ptest () {