Skip to content

Commit

Permalink
fix environment in resque web monit
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Conway committed May 13, 2010
1 parent 3638682 commit 45336ce
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
@path = '/etc/monit/monit.d/monit-resque_web.conf'

PIDFILE = "/var/run/resque_web.pid"
start_program = "resque-web --pid-file #{PIDFILE} --port #{rubber_env.resque_web_port} --no-launch #{RUBBER_ROOT}/config/initializers/resque.rb"
stop_program = "resque-web --pid-file #{PIDFILE} --kill"
start_program = "HOME=/root resque-web --pid-file #{PIDFILE} --port #{rubber_env.resque_web_port} --no-launch #{RUBBER_ROOT}/config/initializers/resque.rb"
stop_program = "HOME=/root resque-web --pid-file #{PIDFILE} --kill"
%>

check process resque_web with pidfile <%= PIDFILE %>
group resque_web
start program = "<%= start_program %>"
stop program = "<%= stop_program %>"
start program = "bash -l -c '<%= start_program %>'"
stop program = "bash -l -c '<%= stop_program %>'"

if totalmem > 350.0 MB for 15 cycles then restart

0 comments on commit 45336ce

Please sign in to comment.