Created
September 20, 2011 18:09
-
-
Save joeshaw/1229828 to your computer and use it in GitHub Desktop.
monit configuration
This file contains hidden or 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
set daemon 10 | |
set logfile /var/log/monit.log | |
set statefile /var/lib/monit/monit.state | |
set alert [email protected] not { nonexist, action, instance } | |
include /etc/monit/conf.d/* |
This file contains hidden or 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 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