Last active
August 10, 2016 22:51
-
-
Save jacobwyke/133f3af36bfdb703105fa2b396160888 to your computer and use it in GitHub Desktop.
Puppetserver Monit config file
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
# | |
# /etc/monit/conf.d/puppetserver | |
# Monit file for puppetserver | |
# | |
check process puppetserver with pidfile /var/run/puppetlabs/puppetserver/puppetserver.pid | |
start program "/usr/bin/service puppetserver start" with timeout 120 seconds | |
stop program "/usr/bin/service puppetserver stop" with timeout 120 seconds | |
if failed port 8140 with timeout 30 seconds and retry 3 times 3 times within 3 cycles then restart | |
if 5 restarts within 5 cycles then timeout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This allows plenty of time for the service to startup as it can be slow to get started as well as open the port.