Skip to content

Instantly share code, notes, and snippets.

@mattlong
Created April 19, 2013 22:51
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 mattlong/5423772 to your computer and use it in GitHub Desktop.
Save mattlong/5423772 to your computer and use it in GitHub Desktop.
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