Skip to content

Instantly share code, notes, and snippets.

@tjl2
Created October 8, 2011 14:47
Show Gist options
  • Save tjl2/1272379 to your computer and use it in GitHub Desktop.
Save tjl2/1272379 to your computer and use it in GitHub Desktop.
Replacing the passenger_monitor cron task
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