Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created April 22, 2020 18:52
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 eksiscloud/f4e2859f6b6660d6b086fc0783ae54ea to your computer and use it in GitHub Desktop.
Save eksiscloud/f4e2859f6b6660d6b086fc0783ae54ea to your computer and use it in GitHub Desktop.
Monit: Hitch
# Hitch
check process hitch with pidfile /var/run/hitch.pid
start program = "/usr/bin/systemctl start hitch" with timeout 30 seconds
stop program = "/usr/bin/systemctl stop hitch"
if failed host 127.0.0.1 port 443 type tcpSSL protocol http
and request /index.html with timeout 5 seconds for 2 times within 2 cycles
then restart
if 2 restarts within 2 cycles then timeout
@eksiscloud
Copy link
Author

BTW, you should use Nginx instead. You get SSL + HTTP/2 much easier and you can kill bots etc what dumb SSL-terminator with really difficult HTTP/2 can't ever do.

Hitch is a good choice if you have thousands busy sites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment