package/sysklogd: allow customisation in systemd service
authorJoachim Wiberg <troglobit@gmail.com>
Sun, 24 Jan 2021 09:20:57 +0000 (10:20 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 24 Jan 2021 09:20:57 +0000 (10:20 +0100)
As is done with the init script, parse the system-level customisation
file, if it exists, from the systemd service unit, to allow users to
provide extra arguments passed to the daemon.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
[yann.morin.1998@free.fr; offload to its own commit]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/sysklogd/syslogd.service

index 1bf1bb3bd92a9f2261e6aede2de89ffafb150a4a..c7e724e13b3cbd9e51b28a19f09c251e6aecc843 100644 (file)
@@ -3,7 +3,8 @@ Description=System Logging Service
 Requires=syslog.socket
 
 [Service]
-ExecStart=/sbin/syslogd -m 0 -F
+EnvironmentFile=-/etc/default/syslogd
+ExecStart=/sbin/syslogd -m 0 -F $SYSLOGD_ARGS
 StandardOutput=null
 Restart=on-failure