syslog-ng fails to start when using a remote loghost
Bug #533059 reported by
Andrew Pollock
This bug report is a duplicate of:
Bug #530779: init: does not wait for parent to exit when following forks.
Edit
Remove
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
New
|
Undecided
|
Unassigned | ||
syslog-ng (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: syslog-ng
If syslog-ng is configured to log to a remote syslog server, it fails to start, because of the divergence between the legacy init scripts and the Upstart jobs. The network isn't up when /etc/rc2.
The solution would seem to be to add an Upstart job.
To post a comment you must log in.
This is the upstart job that seems to solve the problem for me:
description "syslog-ng"
author "Andrew Pollock <email address hidden>"
start on (net-device-up IFACE!=lo)
stop on runlevel [!2345]
pre-start script
if [ ! -e /dev/xconsole ]
then
mknod -m 640 /dev/xconsole p
fi
end script
expect fork
respawn
exec /usr/sbin/syslog-ng