I'm trying to use the :file_touched condition. I added:
on.condition(:file_touched) do |c|
c.path = 'tmp/restart.txt'
end
When I restart god it starts nicely and watches the :file_touched condition. In the log I see:
D [2013-05-07 12:13:47] DEBUG: worker-0 FileTouched [false] {true=>:restart}
Now when I touch the file the log shows the restart but never shows ANY 'god watching' of the process after that.
I [2013-05-07 12:15:51] INFO: worker-0 process stopped
I [2013-05-07 12:15:51] INFO: worker-0 start: bundle exec rake resque:work
This is the last I get from 'worker-0'. God 'forgets' to monitor it again?!?!
Any suggestions?