I'm trying to setup with Upstart a python script that launch several internal procs and kill them if is required with this sentences:
$ listener.py -startall $ listener.py -killall
My Upstart file:
# Listener Service description "Listener Server" start on runlevel  stop on starting rc RUNLEVEL= exec /home/www-data/listener/bin/listener.py -startall pre-stop exec /home/www-data/listener/bin/listener.py -killall
I'm wondering how use the python script command in order to finish the service, if I try to stop with :
$ sudo service listener stop $ stop: Unknown instance:
Its fails, my upstart file only start the services but doesn't work when I try to stop it. What I'm missing?