Skip to content

Instantly share code, notes, and snippets.

@notahat
Created February 5, 2009 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notahat/59083 to your computer and use it in GitHub Desktop.
Save notahat/59083 to your computer and use it in GitHub Desktop.
The Ruby daemons gem, as used by daemontools, does this to restart daemons:
@group.stop_all
sleep 1
@group.start_all
The stop_all method does not wait for the daemon to exit before returning.
Anyone see the huge glaring problem here? *grumble*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment