No problem. Â I'll try to see if I can figure out what's going on. Â I did already try with :foreground and VVERBOSE, without any change in behavior. Â Here's my .pill file (note I had start grace time up to 240 secs, and it was still doing it); below is the log from running in foreground.
ENV["RAILS_ENV"] = "production"
ENV["QUEUE"] = "*"
ENV["VVERBOSE"] = "1"
Bluepill.application("zmx_app", :foreground => true) do |app|
 app.working_dir = "/srv/zmx/current"
 app.uid = "root"
 app.gid = "root"
 2.times do |i|
  app.process("resque-#{i}") do |process|
   process.group = "resque"
   process.start_command = "rake resque:work"
   process.pid_file = "/srv/zmx/current/tmp/pids/resque_workers-#{i}.pid"
   process.stop_command = "kill -QUIT {{PID}}"
   process.daemonize = true
   process.stdout = process.stderr = "/tmp/bluepill-resque-#{i}.log"
   process.start_grace_time = process.stop_grace_time = process.restart_grace_time = 240.seconds
  end
 end
end
Output from running in foreground:
$ sudo bluepill load /etc/bluepill/zmx_app.pillÂ
[warning]: [zmx_app:resque:resque-0] Executing start command: rake resque:work
[info]: [zmx_app:resque:resque-0] Going from down => starting
[warning]: [zmx_app:resque:resque-1] Executing start command: rake resque:work
[info]: [zmx_app:resque:resque-1] Going from down => starting
[info]: [zmx_app:resque:resque-0] Going from starting => down
[info]: [zmx_app:resque:resque-1] Going from starting => down
[warning]: [zmx_app:resque:resque-0] Executing start command: rake resque:work
[info]: [zmx_app:resque:resque-0] Going from down => starting
[warning]: [zmx_app:resque:resque-1] Executing start command: rake resque:work
[info]: [zmx_app:resque:resque-1] Going from down => starting
^CTerminating...
Thanks,
--