Commit f3afb563 authored by Vitaly Lipatov's avatar Vitaly Lipatov

createbytask: enable httpd2 restart in monit file

parent 6c3924dc
......@@ -68,8 +68,8 @@ check process httpd2 with pidfile /var/run/httpd2/httpd.pid
# stop program = "/usr/local/sbin/stophttpd2"
if failed host localhost port 80 protocol http
and request "/server-status" timeout 10 seconds 2 times within 3 cycles then alert
# if failed host localhost port 8008 protocol http
# and request "/server-status" timeout 20 seconds 3 times within 4 cycles then restart
if failed host localhost port 80 protocol http
and request "/server-status" timeout 20 seconds 3 times within 4 cycles then restart
EOF
subst "s|monit:secretword|monit:Dip74iFwwP12|g" /etc/monitrc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment