1
0
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:
Steve Kamerman
2017-11-01 17:26:31 -04:00
parent 42c48d8465
commit 25d13ef2b8

View File

@@ -20,5 +20,8 @@ syslogng_wait() {
return $RET return $RET
} }
kill $(cat "$PIDFILE") if [ -f "$PIDFILE" ]; then
kill $(cat "$PIDFILE")
fi
syslogng_wait 0 $? syslogng_wait 0 $?