I've seen some examples around the net about pill scripts for resque,
but none work to my satisfaction. My issue is with the child
processes..for some reason I get zombie workers lying around and I'm
having trouble killing them. God offers a script called stale for
killing these, but I find that it kills more than it's supposed to. I
may start to hack a solution using their solution without killing off
resque_web which I monitor too but I was hoping there was a more sane
way.
Here is my resque.pill script:
https://gist.github.com/882634
I tried using -QUIT instead of -USR1 as well and that didn't seem to
work either. Bluepill actually gets the right pid when I check the
status using rvmsudo bluepill my_app_resque_web status, but I think
it's not actually running the stop_command for the child processes,
because when I run -QUIT on those processes, they die gracefully.
Any ideas/help?