Skip to content

Instantly share code, notes, and snippets.

@octplane
Created October 17, 2011 08:16
Show Gist options
  • Select an option

  • Save octplane/1292189 to your computer and use it in GitHub Desktop.

Select an option

Save octplane/1292189 to your computer and use it in GitHub Desktop.
God Patch to allow restarting a daemon which has been programmatically stopped (cf http://groups.google.com/group/god-rb/browse_thread/thread/18eb04f0f448b661 )
module God
class Watch < Task
VALID_STATES = [:init, :up, :start, :restart, :stop]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment