10
1
I have the following job in /etc/init/collector
:
start on runlevel [2345]
stop on runlevel [!2345]
expect daemon
exec /usr/bin/twistd -y /path/to/my/tac/file
When I start the job with sudo service collector start
, it hangs. If I ctrl-c
and run initctl list
, I see this:
collector start/killed, process 616
I can't see an instance of the twistd
daemon in ps, and the HTTP server it's supposed to be providing does not exist.
I even tried this without 'expect daemon' and with a simple call to a one-line bash script using a script
stanza, and it still doesn't work. I think I'm doing something very wrong. What could it be?
No answer, but I'm struggling with a similar issue. It might even be a bug in Upstart: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/438313 I don't know how to get from this hanging state other then rebooting. Also I believe it has to do with the
– harm – 2012-04-02T16:10:20.150expect daemon
line.