Когда я пытаюсь: stop mysite_api
, я получаю:
stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.11" (uid=1000 pid=2242 comm="stop mysite_api ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
Мой сценарий:
description "Mysite API Server"
author "Mysite"
start on vagrant-mounted
stop on runlevel [!2345]
respawn
script
cd /vagrant/Mysite/api
exec sudo -u vagrant python api.py
end script