I tried to put a dependency system into god
https://github.com/Ferengee/god-extensions/blob/master/etc/god/extensions/dependencies.rb
Older versions of god had a dependency_graph.rb which is now also included
in the repository
This patch adds an extra state for the watches that wait on a not yet up
beeing dependency
On Wednesday, October 17, 2012 12:10:09 PM UTC+2, Roman Gaufman wrote:
>
> Did you ever find a solution to this?
>
> On Friday, 13 June 2008 18:42:58 UTC+1, s.ross wrote:
>>
>> I have a Rails app that wants a DRb process to be alive before
>> starting. Using monit, one can prevent the mongrels from starting
>> based on the state of another process. Is there some way to monitor an
>> arbitrary process or processes as a condition of starting a given one.
>> E.g.:
>>
>> %w{8000 8001 8002}.each do |port|
>> God.watch do |w|
>> w.name = "my-mongrel-#{port}"
>> w.depends_on "my-drb" # <== this is what I'm
>> trying to accomplish.
>> # ...
>> end
>> end
>>
>> %2{24242}.each do |port| # maybe more ports later
>> God.watch do |w|
>> w.name = "my-drb"
>> # etc.
>> end
>> end
>>
>> Any thoughts?
>>
>> Thanks.
>
>
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/god-rb/-/y5Ba-HzvM1MJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/god-rb?hl=en.