Ubuntu upstart script for tracd hangs on start/stop

view full story

http://serverfault.com – I'm trying to set up an Ubuntu (12.04 LTS) upstart script to manage Trac's built in web server as an upstream server for nginx. Here is my init script /etc/init/tracd.conf. I used http://codebyko.se/2010/11/26/tracd-with-upstart-on-ubuntu/ (first and only google result for 'upstart' and 'tracd') as a starting point: description "Tracd Web Server" start on startup stop on shutdown expect daemon exec sudo tracd -d -p 8000 -b --user=www-data --group=www-data /trac/proj Whenever I run this through sudo service tracd start or sudo service tracd stop, it simply hangs and never ret (HowTos)