我有一個工頭腳本啓動一些獨立的紅寶石應用程序的工人。這裏的腳本Resque工人工頭未能啓動工人
工頭腳本 worker: bundle exec rake resque:work BACKGROUND=true QUEUE=image VERBOSE=true
當我運行該腳本,這是輸出我得到。
$ foreman start
22:00:38 worker.1 | started with pid 882
22:00:38 worker.1 | exited with code 0
22:00:38 system | sending SIGTERM to all processes
SIGTERM received
的過程似乎已經離開,但是當我看ps -eaf | grep resque
記錄它展示了運行與PID 884.我測試過這一點,它總是PID +2比原來resque工人。
當我從沒有領班的終端直接運行bundle exec命令時,該命令執行得很好。有什麼我失去了工頭腳本?