]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
systemd: enable syslog.socket by default
authorChen Qi <Qi.Chen@windriver.com>
Thu, 11 Sep 2014 08:55:03 +0000 (04:55 -0400)
committerChen Qi <Qi.Chen@windriver.com>
Fri, 19 Sep 2014 08:07:25 +0000 (16:07 +0800)
commitd3c30a19101eacd3c339a31578f9bcae81cc08fe
treeaab73198acd8c5b0fb9d6c496022df9dfa36c020
parentf6a39cc957bf85ff43513f0b76afc3b2c9c906b6
systemd: enable syslog.socket by default

The syslog daemon behaviour in our systemd system should be like the following
1. If ForwardToSyslog is disabled, no daemon should be started.
2. If ForwardToSyslog is enabled, daemon should be started via socket
   activation. This is very important for OE based system. Because unlike
   other distros, OE allows serveral syslog packages installed into one
   image, using ALTERNATIVE mechanism to manage them. If the syslog
   service is started regardless of socket activation, things crash.
   For example, if there's 'WantedBy=multi-user.target' in the '[Install]'
   section of busybox-syslog.service file, then this service would be started
   anyway, even if syslog.service doesn't point to it. In this case,
   /sbin/syslogd in busybox-syslog.service might be from other syslog packages
   like sysklogd or rsyslog.

This patch is series of patches to implement the above behaviour. The
syslog.socket needs to be enabled by default so that other syslog service
could correctly be activated via socket activation at runtime.

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