Actually it even doesn't run if I try to monitor script/server:
God.watch do |w|
w.name = "some_name"
w.start = "/path/to/rails_dir/script/server"
w.grace = 10.seconds
w.behavior(:clean_pid_file)
w.start_if do |start|
start.condition(:process_running) do |c|
c.interval = 5.seconds
c.running = false
end
end
end
god -c lib/worker/dw.god -D --log-level=debug
I [2009-06-30 20:49:08] INFO: Using pid file directory: /tmp/pids
I [2009-06-30 20:49:08] INFO: Started on drbunix:///tmp/god.17165.sock
I [2009-06-30 20:49:08] INFO: cpt_distributed_worker_0 move
'unmonitored' to 'up'
D [2009-06-30 20:49:08] DEBUG: driver schedule
#<God::Conditions::ProcessRunning:0x19946b0> in 0 seconds
I [2009-06-30 20:49:08] INFO: cpt_distributed_worker_0 moved
'unmonitored' to 'up'
I [2009-06-30 20:49:08] INFO: cpt_distributed_worker_0 [ok] process
is running (ProcessRunning)
D [2009-06-30 20:49:08] DEBUG: cpt_distributed_worker_0 ProcessRunning
[false] {true=>:start}
D [2009-06-30 20:49:08] DEBUG: driver schedule
#<God::Conditions::ProcessRunning:0x19946b0> in 5 seconds
Running on OSX 10.5
god (0.7.13)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---