2014-03-14 92 views
0

我試圖通過運行下面的命令(在Ubuntu 12.04),以守護進程rake任務開始耙任務,守護

start-stop-daemon -S --pidfile /home/dep/apps/fid/current/tmp/pids/que.pid 
-u dep -d /home/dep/apps/fid/current -b -m 
-a "bundle exec rake que:work RAILS_ENV=staging > /home/dep/apps/fid/current/log/que.log 2>&1" 
-v 

控制檯說

Starting bundle exec rake que:work RAILS_ENV=staging > /home/dep/apps/fid/current/log/que.log 2>&1... 

Detaching to start bundle exec rake que:work RAILS_ENV=staging > /home/dep/apps/fid/current/log/que.log 2>&1...done. 

,但沒有發生。

pid文件是空的,沒有創建日誌文件。

我在這裏錯過了什麼嗎?

謝謝。

回答

0

嘗試從常規環境中運行bundle並從start-stop-daemon運行它時嘗試獲取有關環境(及其差異)的更多信息。 例如在這兩種情況下打印所有env變量並相應地進行調整。