Files
VPS-scripts_Monit/conf/monit/nginx.conf
2021-01-08 11:06:07 +01:00

7 lines
353 B
Nginx Configuration File

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