aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysklogd/files/klogd.service
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-09-11 04:55:48 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-09-26 16:55:31 +0800
commit318b7aafa24c267330b5e4d02f5cd66099cd0b5f (patch)
tree106a4fa1b4fc2b7caf1c8cdb19909edb13682b25 /meta/recipes-extended/sysklogd/files/klogd.service
parent93b7f4a3eb8312a9c1e397fab00e37feed90d151 (diff)
downloadopenembedded-core-contrib-318b7aafa24c267330b5e4d02f5cd66099cd0b5f.tar.gz
sysklogd: add systemd support
This patch includes the following changes: 1. Add socket activation support for sysklogd 2. Add systemd service file 3. Use ALTERNATIVE mechanism in OE to manage the syslog service 4. Set ALTERNATIVE_PRIORITY to "100" regardless of whether 'systemd' is in DISTRO_FEATURES or not because sysklogd now has systemd support. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Diffstat (limited to 'meta/recipes-extended/sysklogd/files/klogd.service')
-rw-r--r--meta/recipes-extended/sysklogd/files/klogd.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-extended/sysklogd/files/klogd.service b/meta/recipes-extended/sysklogd/files/klogd.service
new file mode 100644
index 0000000000..cf97e9ce08
--- /dev/null
+++ b/meta/recipes-extended/sysklogd/files/klogd.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=sysklogd Kernel Logging Service
+
+[Service]
+Type=forking
+EnvironmentFile=-@SYSCONFDIR@/default/klogd
+PIDFile=/var/run/klogd.pid
+ExecStart=@BASE_SBINDIR@/klogd $KLOGD
+StandardOutput=null