Skip to content

Instantly share code, notes, and snippets.

@joeshaw
Created September 20, 2011 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeshaw/1229828 to your computer and use it in GitHub Desktop.
Save joeshaw/1229828 to your computer and use it in GitHub Desktop.
monit configuration
set daemon 10
set logfile /var/log/monit.log
set statefile /var/lib/monit/monit.state
set alert foo@example.com not { nonexist, action, instance }
include /etc/monit/conf.d/*
check process myservice
with pidfile /var/run/myservice/myservice.pid
start program = "/home/myservice/current/start-myservice.sh"
as uid myservice and gid myservice
stop program = "/home/myservice/current/stop-myservice.sh"
as uid myservice and gid myservice
mode active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment