mirror of
https://github.com/manios/docker-nagios.git
synced 2026-08-03 08:12:06 +00:00
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:
parent
0bcaf34c62
commit
2b17c9fbfc
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue