mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-26 12:29:07 +00:00
Gracefully handle syslog-ng shutdown
This commit is contained in:
@@ -20,5 +20,8 @@ syslogng_wait() {
|
||||
return $RET
|
||||
}
|
||||
|
||||
kill $(cat "$PIDFILE")
|
||||
if [ -f "$PIDFILE" ]; then
|
||||
kill $(cat "$PIDFILE")
|
||||
fi
|
||||
|
||||
syslogng_wait 0 $?
|
||||
|
||||
Reference in New Issue
Block a user