2014-03-14 131 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变量并相应地进行调整。