mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-19 09:10:42 +01:00
There is a time window, between rsyslog reporting syntax errors and the daemon returning with failure, this may cause systemctl restart rsyslog to not report any error inmediately but later in the logs which is confusing to users. The appropiate steps to correct this annoyance is to notify systemd with a simple sd_notify(0, "READY=1"); just before entering the main loop. Tested in openSUSE 12.3/13.1 x86_64
13 lines
199 B
SYSTEMD
13 lines
199 B
SYSTEMD
[Unit]
|
|
Description=System Logging Service
|
|
Requires=syslog.socket
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStart=@sbindir@/rsyslogd -n
|
|
StandardOutput=null
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=syslog.service
|