rails_root = "/var/rails/turtle/current"
God.watch do |w|
w.dir = rails_root
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?