From 6acfd8794d3cb5f8f32662f6b49a90404d50a8c8 Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Wed, 30 Apr 2014 08:45:49 -0400 Subject: [PATCH] Remove /dev/log if it's a file a file. Fixes https://github.com/phusion/baseimage-docker/pull/25 --- image/runit/syslog-ng | 5 +++++ 1 file changed, 5 insertions(+) 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