Files
VPS-scripts_Monit/conf/monit/apache.conf

7 lines
361 B
ApacheConf

check process APApro with pidfile /var/run/APAserv/APAserv.pid
start program = "/bin/systemctl start APAserv"
stop program = "/bin/systemctl stop APAserv"
if not exist for 1 cycles then restart
if not exist for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: Apache'"
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: Apache'"