-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed syslog-ng not being able to start because of a missing afsql mo…
…dule. Closes pull request 7.
- Loading branch information
1 parent
095c1e7
commit 9af37c0
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# If a variable is not set here, then the corresponding | ||
# parameter will not be changed. | ||
# If a variables is set, then every invocation of | ||
# syslog-ng's init script will set them using dmesg. | ||
|
||
# log level of messages which should go to console | ||
# see syslog(3) for details | ||
# | ||
#CONSOLE_LOG_LEVEL=1 | ||
|
||
# Command line options to syslog-ng | ||
# We set --default-modules because of https://github.com/phusion/baseimage-docker/pull/7. | ||
SYSLOGNG_OPTS="--no-caps --default-modules=affile,afprog,afsocket,afuser,basicfuncs,csvparser,dbparser,syslogformat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters