I seem to have solved this.
start on runlevel [2345]
stop on runlevel [06]
respawn
script
exec /usr/bin/python /home/myself/myscript.py
end script
I added respawn
and placed exec
before the command. According to this: http://newcome.wordpress.com/2012/02/26/running-programs-as-linux-daemons-using-upstart/ exec
is an Upstart specific stanza instead of the normal exec
command.