Fix rsyslogd restarting run failed with error -3000 (#8)

- Rsyslogd service restarts but does not reuse the existing .pid file.
This commit is contained in:
Christos Manios 2019-11-10 21:29:33 +02:00
parent 0bcaf34c62
commit 2b17c9fbfc

View file

@ -1,3 +1,9 @@
#!/bin/sh
set -eu
echo -n "Removing rsyslogd PID file before starting it ..."
(rm -f /var/run/rsyslogd.pid || true)
echo "OK"
exec rsyslogd -n -f /etc/rsyslog.conf