次のコマンドを実行して、rake タスクをデーモン化しようとしています (Ubuntu 12.04 上)。
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 ファイルは空で、ログ ファイルは作成されません。
ここで何か不足していますか?
ありがとう。