summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/sysklogd/files/klogd.service
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2017-01-03 12:01:58 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-16 18:05:12 +0000
commite30f00bca5f61e9693d59e763a3dce633d76f00b (patch)
tree3f2ae58878e5f238406f080e98c45984d0d3e7e5 /meta/recipes-extended/sysklogd/files/klogd.service
parent5ff8fdd3d676670412e9d504abbe34a635991583 (diff)
downloadpoky-e30f00bca5f61e9693d59e763a3dce633d76f00b.tar.gz
sysklogd: do more to properly work with systemd
It was noticed that syslogd and klogd were no longer running on system startup, meaning no /var/log/messages etc.. It appears as though sysklogd has never been updated to follow the expected logging requirement for systemd as described here: https://www.freedesktop.org/wiki/Software/systemd/syslog/ As such no service was started and no logging present. Using the above guidelines we create two new service files syslogd.service and klogd.service. We make use of tmpfiles.d in order to ensure the xconsole device node exists and do other minor recipe cleanup to ensure peaceful coexistence with sysvinit and systemd implementations. The systemd documentation also asks that for a logger which is not rsyslog that we also enable 'ForwardToSyslog=' in journald.conf, but this is already the case so no action is required. With this change in place syslogd and klogd are started at system startup and the expected logs are available. Unfortunately I was not able to find any work done on this upstream or in other distros so this is my best effort at making this work. (From OE-Core rev: 914e08cf627e54e5019eda2154663c30b9a68ded) Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/sysklogd/files/klogd.service')
-rw-r--r--meta/recipes-extended/sysklogd/files/klogd.service13
1 files changed, 13 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..0c888c497d
--- /dev/null
+++ b/meta/recipes-extended/sysklogd/files/klogd.service
@@ -0,0 +1,13 @@
1[Unit]
2Description=Kernel Logging Service
3After=syslogd.service
4
5[Service]
6Type=forking
7ExecStart=/sbin/klogd
8PIDFile=/var/run/klogd.pid
9StandardOutput=null
10Restart=on-failure
11
12[Install]
13WantedBy=multi-user.target