resque/resque — pull request #1007 by ktheory (2013-05-07 18:26:45+00:00)
Title: Add graceful_term option so TERM works like QUIT (for 1-x-stable)

If Worker#graceful_term is enabled, SIGTERM waits for a job to complete
before exiting (just like SIGQUIT).

Worker#graceful_term defaults to ENV['GRACEFUL_TERM'].

This makes it possible to use resque with runit/daemontools without
resorting to a wrapper script.