diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-09-11 04:55:35 -0400 |
---|---|---|
committer | Chen Qi <Qi.Chen@windriver.com> | 2014-09-19 16:07:27 +0800 |
commit | 93b7f4a3eb8312a9c1e397fab00e37feed90d151 (patch) | |
tree | d87839138802c390f9f5cdc920710d77e02e0881 /meta/recipes-core/busybox/files/busybox-syslog.service.in | |
parent | d3c30a19101eacd3c339a31578f9bcae81cc08fe (diff) | |
download | openembedded-core-contrib-93b7f4a3eb8312a9c1e397fab00e37feed90d151.tar.gz |
busybox: fix for syslog service in systemd
This patch includes the following changes:
1. Explicitly set StandardOutput of the log daemon to null.
This would avoid creating a feedback loop of the syslog service.
See link below for more information.
http://www.freedesktop.org/wiki/Software/systemd/syslog/
2. Use ALTERNATIVE machanism to manage the syslog service file.
This is because that other package may also provide a syslog
implementation.
3. Make the syslog daemon socket activated only. Otherwise, things
would crash if we install busybox-syslog and other syslog packages
together in one image.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-core/busybox/files/busybox-syslog.service.in')
-rw-r--r-- | meta/recipes-core/busybox/files/busybox-syslog.service.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/recipes-core/busybox/files/busybox-syslog.service.in b/meta/recipes-core/busybox/files/busybox-syslog.service.in index 2e04321385..c84edaf853 100644 --- a/meta/recipes-core/busybox/files/busybox-syslog.service.in +++ b/meta/recipes-core/busybox/files/busybox-syslog.service.in @@ -1,13 +1,12 @@ [Unit] Description=System Logging Service Wants=busybox-klogd.service +Requires=syslog.socket [Service] -EnvironmentFile=-/etc/default/busybox-syslog +EnvironmentFile=-@SYSCONFDIR@/default/busybox-syslog ExecStart=@base_sbindir@/syslogd -n $OPTIONS -Sockets=syslog.socket +StandardOutput=null [Install] -WantedBy=multi-user.target Also=busybox-klogd.service -Alias=syslog.service |