For those trying to use God, this is working for me:

RAILS_ROOT = "/Users/pedzan/Source/Rails/raptor"
God.pid_file_directory = File.join(RAILS_ROOT, "tmp/pids")

God.watch do |w|
  w.pid_file = w.pid_file
  w.start = "nohup /usr/local/bin/beanstalkd & echo $! > #{w.pid_file}"
  w.stop = "kill -INT $( cat #{w.pid_file})"

The setting the pid file equal to itself causes the pid file to be computed 
and then it is then set which triggers God into monitoring it differently.

It avoids using -d since that is now gone (I found the previous.)  This 
simply puts beanstalkd into the background and then echo $! into the 
pid_file.  Very simple.

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/beanstalk-talk/-/JinklMNgk7MJ.
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/beanstalk-talk?hl=en.

Reply via email to