I've set up God to run scheduler:

***
rails_root = "/var/rails/turtle/current"

God.watch do |w|
  w.dir = rails_root
  w.name = "scheduler"
  w.interval = 60.seconds
  w.start = "cd #{rails_root}; RAILS_ENV=development bundle exec rails 
runner script/scheduler_god"
  w.uid = "turtle"
  w.pid_file = File.join(rails_root, "tmp/pids/scheduler.pid")
  w.log = File.join(rails_root, "log/scheduler_god.log")

  w.keepalive(:memory_max => 800.megabytes,
              :cpu_max => 90.percent)
end
***

God starts script/scheduler_god just fine, but when I type `god stop 
scheduler` nothing happens.  I have to manually do a `kill -QUIT <pid>`. 
 What am I missing?

Thanks,

Raphael

-- 
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/-/IZbLTHUSZeMJ.
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.

Reply via email to