zimbatm / socketmaster

Zero downtime restarts for your apps
https://zimbatm.github.io/socketmaster/
MIT License
650 stars 48 forks source link

"The SIGHUP signal is sent to a process when its controlling terminal is closed" #4

Open s6577t opened 11 years ago

s6577t commented 11 years ago

https://en.wikipedia.org/wiki/Unix_signal

If you run socketmaster -command my_command & and then close the shell, socket master will start a new child process

Maybe use USR2 instead?

s6577t commented 11 years ago

nope. HUP is also used by unicorn. I started a Go process started via an ssh session, put it into the bg and then closed the ssh session, no HUP signal was received.

zimbatm commented 11 years ago

OK thanks for confirming this. I had seen HUP being used for soft reloads in the past so it seemed appropriate. On Jul 25, 2013 10:03 AM, "Sam Taylor" notifications@github.com wrote:

nope. HUP is also used by unicorn. I started a Go process started via an ssh session, put it into the bg and then closed the ssh session, no HUP signal was received.

— Reply to this email directly or view it on GitHubhttps://github.com/pandastream/socketmaster/issues/4#issuecomment-21541378 .

s6577t commented 11 years ago

yeah. I tried it out on Darwin and Debian (ubuntu).