Skip to content

Commit 95d89dd

Browse files
authored
Merge branch 'master' into Theaxiom-patch-2
2 parents 338238d + 06e2983 commit 95d89dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

image/services/syslog-ng/syslog-ng.init

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -em
33

44
# If /dev/log is either a named pipe or it was placed there accidentally,
55
# e.g. because of the issue documented at https://github.com/phusion/baseimage-docker/pull/25,

image/services/syslog-ng/syslog-ng.shutdown

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ syslogng_wait() {
2020
return $RET
2121
}
2222

23-
kill $(cat "$PIDFILE")
23+
if [ -f "$PIDFILE" ]; then
24+
kill $(cat "$PIDFILE")
25+
fi
26+
2427
syslogng_wait 0 $?

0 commit comments

Comments
 (0)