Created
April 19, 2013 22:51
-
-
Save mattlong/5423772 to your computer and use it in GitHub Desktop.
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
set daemon 60 #check interval in seconds | |
check process ssh with pidfile "/var/run/sshd.pid" | |
start program "/sbin/start ssh" | |
stop program "/sbin/stop ssh" | |
if failed port 22 protocol ssh then restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment