Package: upstart
Version: 0.6.3-1
Severity: normal

I wrote an upstart configuration file /etc/init/dnsmasq.conf (attached for reference) which contains the following stanza:

start on runlevel [23] and syslog-started

Having hacked my /etc/init.d/rsyslog to run "initctl emit syslog-started" after starting the rsyslog daemon, dnsmasq is indeed started on system boot. However, when I manually run "initctl emit syslog-started", the initctl process just hangs until, in another terminal, I run "telinit 3". Surely initctl should return as soon as it has emitted its event, and not wait for any codependencies?

Regards,
Michael
description "dnsmasq DHCP/DNS/TFTP server"
author "Michael Goetze <mgoe...@mgoetze.net>"

start on runlevel [23] and syslog-started
stop on runlevel [!23]

env PATH=/sbin:/bin:/usr/sbin:/usr/bin

pre-start script
if [ ! -d /var/run/dnsmasq ]
then
        mkdir /var/run/dnsmasq || exit 2
        chown dnsmasq:nogroup /var/run/dnsmasq || exit 2
fi
end script

expect daemon
exec /usr/sbin/dnsmasq -u dnsmasq -7 /etc/dnsmasq.d

Reply via email to