1

upstart script not stopping the service

view story
linux-howto

http://askubuntu.com – My upstart script for jetty server. Created using examples on web. Tried various versions. Script below is just one version of all my attempts: start on runlevel [2345] stop on runlevel [!2345] env DAEMON=/opt/jetty/bin/jetty.sh expect fork post-stop exec $DAEMON stop exec $DAEMON start This script starts the jetty server correctly sudo service jetty start But hangs on sudo service jetty stop After this its totally bad state. I can not figure out anything. Even start does not work. If I install my jetty script in /etc/init.d, it works: sudo cp /opt/jetty/bin/jetty.sh /etc/init. (HowTos)