Permalink
Browse files

Tweak example god config - leave daemonizing to god

  • Loading branch information...
1 parent cf1c58b commit 59ef6a62432232539abea37a60f63b15b8d75e55 Kali Donovan committed Jan 11, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 contrib/apn_sender.god
View
@@ -9,11 +9,13 @@ rails_root = "/var/www/#{app_name}/current"
# Resque
God.watch do |w|
- w.dir = "#{rails_root}"
- w.name = "resque"
+ w.dir = "#{rails_root}"
+ w.name = "apn_sender-#{rails_env}"
+ w.group = "resque-#{rails_env}"
w.interval = 60.seconds
- w.start = "#{rails_root}/script/apn_sender.rb --environment=#{rails_env} --verbose start"
- w.stop = "#{rails_root}/script/apn_sender.rb --environment=#{rails_env} --verbose stop"
+ w.env = {"VERBOSE" => "1", "ENVIRONMENT" => rails_env}
+ w.start = "bundle exec rake apn:sender"
+ w.log = "#{rails_root}/log/apn_sender.log"
# restart if memory gets too high
w.transition(:up, :restart) do |on|

0 comments on commit 59ef6a6

Please sign in to comment.