1
在我的用例中,我試圖爲nginx服務編寫一個暴發戶腳本。這裏是我的內容,如何爲nginx服務編寫新貴腳本?
#nginx upstart script
description "start and stop nginx server"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
respawn
respawn limit 5 30
console output
exec service nginx start
但是,這並不工作,因爲我們需要刪除pid
等停止後開始。
有人可以幫助我嗎?我正在使用亞馬遜linux [ec2]。