God doesn't stop process

100 views
Skip to first unread message

Raphael Crawford-Marks

unread,
Nov 13, 2012, 10:04:06 AM11/13/12
to god...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages