redding/sanford — pull request #72 by jcredding (2013-03-29 19:19:24+00:00)
Title: Don't re-daemonize the process when restarting

Currently, Sanford re-daemonizes it's process when it is
restarted. This isn't ideal because the PID changes, which isn't
the intent with a "hot" restart using exec. This seems to also
cause issues with some monitoring tools losing the process they
should be monitoring.

@kellyredding - This works, but I have another idea I'm gonna try. I don't like analyzing the command they typed. I think I'm going to store a `@daemonize` flag to be explicit that the previous process was daemonized by Sanford (regardless of the command they used) and that we need to undo that when restarting it. I'll comment when I've got it ready to review.