Restarting a stopped daemon

30 views
Skip to first unread message

Pierre Baillet

unread,
Oct 14, 2011, 9:20:54 AM10/14/11
to god.rb
Hi,

I'm trying to restart a daemon that I have previously stopped. This
doesn't work as expected, as it seems a stopped daemon will never
start again. The sample code I've ended up with is https://gist.github.com/1287060
and basically implement a very simple daemon that runs every other
minutes (of course, this is a simple proof of concept as I want to use
the lambda feature to integrate with grid-wide daemon management
later).

If anyone has an idea on how to have that behaviour, I'd be really
cool !

Thanks for reading and thanks Tom, for god :)

--
Pierre.

Pierre Baillet

unread,
Oct 17, 2011, 4:16:38 AM10/17/11
to god...@googlegroups.com
Hello,

It seems like monkey-patching the Watch task is enough to allow such behavior. I don't know if there are side effects though.


Cheers,
-- 
Pierre.
--
You received this message because you are subscribed to the Google Groups "god.rb" group.
To post to this group, send email to god...@googlegroups.com.
To unsubscribe from this group, send email to god-rb+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/god-rb?hl=en.

Reply all
Reply to author
Forward
0 new messages