I have the following job in
start on runlevel  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?