[oe-commits] Chen Qi : systemd: enable forwarding messages to syslog daemon

git at git.openembedded.org git at git.openembedded.org
Tue Sep 2 17:11:21 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 2d07a569d472ebc2443a10e261b16d9b1e0322db
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2d07a569d472ebc2443a10e261b16d9b1e0322db

Author: Chen Qi <Qi.Chen at windriver.com>
Date:   Tue Sep  2 18:54:12 2014 +0800

systemd: enable forwarding messages to syslog daemon

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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-core/systemd/systemd_216.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/systemd/systemd_216.bb b/meta/recipes-core/systemd/systemd_216.bb
index 776006f..43bba9c 100644
--- a/meta/recipes-core/systemd/systemd_216.bb
+++ b/meta/recipes-core/systemd/systemd_216.bb
@@ -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 () {



More information about the Openembedded-commits mailing list