diff --git a/image/runit/syslog-ng b/image/runit/syslog-ng index f450b4b..0b5058a 100755 --- a/image/runit/syslog-ng +++ b/image/runit/syslog-ng @@ -1,6 +1,11 @@ #!/bin/sh set -e +# If /dev/log is either a named pipe or it was placed there accidentally, +# e.g. because of the issue documented at https://github.com/phusion/baseimage-docker/pull/25, +# then we remove it. +if [ ! -S /dev/log ]; then rm -f /dev/log; fi + SYSLOGNG_OPTS="" [ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng