Hi,
I am in uncharted waters here. I'd appreciate any help guys.
I have the following script:
%w{6379}.each do |port|
God.watch do |w|
w.name = "redis"
w.interval = 30.seconds
w.start = "rake -f /app/current/Rakefile redis:start"
w.stop = "rake -f /app/current/Rakefile redis:stop"
w.restart = "rake -f /app/current/Rakefile redis:restart"
w.start_grace = 10.seconds
w.restart_grace = 10.seconds
w.start_if do |start|
start.condition(:process_running) do |c|
c.interval = 5.seconds
c.running = false
end
end
end
end
When I run god -c config/myscript.rb -D
I god always trying to start redis... with no luck. I don't get an
error though.
If I run the same command in terminal, i.e. rake -f /app/current/
Rakefile redis:start ... it works fine.
Can anyone help me find out what the problem is?
Thanks!!
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
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.