Merge pull request #447 from kamermans/bugfix/syslog_unclean_shutdown

Gracefully handle syslog-ng shutdown
This commit is contained in:
Travis Rowland
2017-11-23 12:28:14 -08:00
committed by GitHub

View File

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