【发布时间】:2012-05-03 21:17:51
【问题描述】:
我正在尝试使用 bluepill 来监控我的 resque 工作人员。
如果我以 root 用户身份从我的 rails root 运行此命令,它会启动 resque worker ok。
cd /var/www/domain.com/current; RAILS_ENV=production QUEUE=* bundle exec rake resque:work
但是当我尝试使用 bluepill 运行它时,它只是一直在尝试启动它并且不会给我一个错误。
这是我的 bluepill 日志,显示它正在尝试......!
W, [2011-07-12T22:58:21.640467 #19267] WARN -- : [domain.com:resque] Executing start command: cd /var/www/domain.com/current; RAILS_ENV=production QUEUE=* bundle exec rake resque:work
I, [2011-07-12T22:58:21.754392 #19267] INFO -- : [domain.com:resque] Going from down => starting
I, [2011-07-12T22:59:21.334300 #19267] INFO -- : [domain.com:resque] Going from starting => down
W, [2011-07-12T22:59:22.339873 #19267] WARN -- : [domain.com:resque] Executing start command: cd /var/www/domain.com/current; RAILS_ENV=production QUEUE=* bundle exec rake resque:work
I, [2011-07-12T22:59:22.479740 #19267] INFO -- : [domain.com:resque] Going from down => starting
它一遍又一遍地这样做。
这是我的 .pill 文件过程
app.process("resque") do |process|
process.start_command = "cd #{RAILS_ROOT}; RAILS_ENV=#{RAILS_ENV} QUEUE=* bundle exec rake resque:work"
process.daemonize = true
process.start_grace_time = 10.seconds
process.stop_grace_time = 10.seconds
process.restart_grace_time = 10.seconds
end
我已经尝试延长开始宽限时间,如果它没有在要求的时间内加载但没有产生任何影响。
请问有人可以帮忙吗?
提前致谢 瑞克
【问题讨论】:
标签: ruby-on-rails-3 resque bluepill