1
0
mirror of /repos/baseimage-docker.git synced 2026-02-27 17:41:59 +01:00

Fixed syslog-ng not being able to start because of a missing afsql module.

Closes pull request 7.
This commit is contained in:
Hongli Lai (Phusion)
2014-02-25 11:06:51 +01:00
parent 095c1e715c
commit 9af37c0d58
4 changed files with 37 additions and 1 deletions

View File

@@ -1,3 +1,24 @@
#!/bin/sh
set -e
exec syslog-ng -F -p /var/run/syslog-ng.pid
SYSLOGNG_OPTS=""
[ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng
case "x$CONSOLE_LOG_LEVEL" in
x[1-8])
dmesg -n $CONSOLE_LOG_LEVEL
;;
x)
;;
*)
echo "CONSOLE_LOG_LEVEL is of unaccepted value."
;;
esac
if [ ! -e /dev/xconsole ]
then
mknod -m 640 /dev/xconsole p
fi
exec syslog-ng -F -p /var/run/syslog-ng.pid $SYSLOGNG_OPTS