Created
October 8, 2011 14:47
-
-
Save tjl2/1272379 to your computer and use it in GitHub Desktop.
Replacing the passenger_monitor cron task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cron "passenger_monitor_#{app_name}" do | |
action :delete | |
end | |
cron "passenger_monitor_#{app_name}" do | |
minute '*' | |
hour '*' | |
day '*' | |
month '*' | |
weekday '*' | |
command "/usr/bin/lockrun --lockfile=/var/run/passenger_monitor_#{app_name}.lockrun -- /bin/bash -c '/engineyard/bin/passenger_monitor #{app_name} -l #{memory_limit} >/dev/null 2>&1'" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment