Skip to content

Instantly share code, notes, and snippets.

@cristianrasch
Created August 6, 2015 21:33
Show Gist options
  • Save cristianrasch/e8502ca2484f193c7c56 to your computer and use it in GitHub Desktop.
Save cristianrasch/e8502ca2484f193c7c56 to your computer and use it in GitHub Desktop.
Monit check for your Torquebox process
check process torquebox with pidfile /var/run/torquebox/torquebox.pid
start program = "/usr/sbin/service torquebox start" with timeout 60 seconds
stop program = "/usr/sbin/service torquebox stop" with timeout 30 seconds
if not exist for 3 cycles then restart
if failed
host example.com
port 443
type tcpssl
protocol https
request "/your-path"
status = 200
with timeout 15 seconds
then restart
if 3 restarts within 5 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment