I'm trying to setup in Upstart a script that launch several internal procs and kill them if is required
$ listener.py -startall $ listener.py -killall
I can run it with this settings:
# 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
But I'm wondering how run the command listener.py -killall to finish the service:
$ sudo service listener stop $ stop: Unknown instance:
My upstart script only start the services but doesn't work when I try to stop it.
Thanks in advance.