On a virtualised Ubuntu, I used the command
$ foreman export upstart /etc/init -f Procfile -e conf/development.env -u ubuntu -a my_app -t upstart
And can now start my_app using
$ sudo start my_app
However the following command fails
$ sudo reload my_app
reload: Not running
despite both of the following working
$ sudo stop my_app
$ sudo restart my_app
Anyone have ideas on how to debug? $ initctl list
also clearly shows my_app running
reload
sends a SIGHUP to the named job, I'd suspect that the pid file as defined in the upstart job is not set correctly. Of course this guess is confounded bystop
command working properly. So I'd dig through the system logs for /var/log mentions of my_app and add relevant entries to your question. – msw Sep 17 '13 at 11:58