Created
April 22, 2020 18:52
-
-
Save eksiscloud/f4e2859f6b6660d6b086fc0783ae54ea to your computer and use it in GitHub Desktop.
Monit: Hitch
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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.