Created
February 9, 2010 16:05
-
-
Save curt/299349 to your computer and use it in GitHub Desktop.
Monit service entry for Rails background process
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
check process app_background | |
with pidfile "/path/to/app/shared/pids/background.pid" | |
start program = "/usr/bin/sudo -u user RAILS_ENV=production /usr/local/bin/ruby /path/to/app/current/background_control.rb start" | |
stop program = "/usr/bin/sudo -u user RAILS_ENV=production /usr/local/bin/ruby /path/to/app/current/background_control.rb stop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment