How do I debug an upstart job?

Posted by Cerales on Super User See other posts from Super User or by Cerales
Published on 2012-03-23T02:50:26Z Indexed on 2012/03/23 5:33 UTC
Read the original article Hit count: 195

Filed under:
|
|

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?

© Super User or respective owner

Related posts about linux

Related posts about ubuntu