sysklogd/syslogd.service.in
Joachim Wiberg 7ec64e5f9c Fix #62: early log messages lost when running in systemd
This is a follow-up to d7576c7 which initially added support for running
in systemd based systems.  Since the unit file sources the syslog.socket
we have /run/systemd/journal/syslog open already on descriptor 3.  All
we need to do is verify that's the mode syslogd runs in.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2023-04-22 08:27:57 +02:00

16 lines
321 B
SYSTEMD

[Unit]
Description=System Logging Service
Documentation=man:syslogd
Documentation=man:syslog.conf
Requires=syslog.socket
[Service]
EnvironmentFile=-@SYSCONFDIR@/default/syslogd
ExecStart=@SBINDIR@/syslogd -F $SYSLOGD_OPTS
StandardOutput=null
Restart=on-failure
[Install]
WantedBy=multi-user.target
Alias=syslog.service