私がしようとすると: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