Ubuntu upstart hangs on interactive start & stop
Posted
by
danorton
on Server Fault
See other posts from Server Fault
or by danorton
Published on 2011-06-07T00:20:43Z
Indexed on
2013/10/20
9:58 UTC
Read the original article
Hit count: 139
How do I get Ubuntu upstart to not hang on interactive start & stop?
I have created many upstart scripts that work fine during init, but often hang when I enter them at the console. If I CTRL+C out, all that happens is that the job changes state. The script is never run.
I’m running Ubuntu Lucid on a Xen virtual server with a Linux 2.6.39 kernel.
Below is merely a representative example of many scripts that behave this way:
description "apache2"
start on local-filesystems \
and (net-device-up IFACE=lo) \
and (runlevel [2345])
stop on runlevel [016]
respawn
respawn limit 10 5
expect daemon
script
. /etc/apache2/envvars
/usr/sbin/apache2ctl start
end script
© Server Fault or respective owner