updated systemctl path, fixed mysql & php conf

This commit is contained in:
2021-01-08 15:03:15 +01:00
parent cedf566f74
commit fc90bb59fe
7 changed files with 20 additions and 19 deletions

View File

@@ -1,8 +1,8 @@
check process PHPpro with pidfile PHPpid
start program = "/usr/bin/systemctl start PHPsrv"
stop program = "/usr/bin/systemctl stop PHPsrv"
start program = "/bin/systemctl start PHPsrv"
stop program = "/bin/systemctl stop PHPsrv"
if failed unixsocket PHPsock then restart
if failed unixsocket PHPsockfor 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: phpPHPver-fpm socket'"
if failed unixsocket PHPsock for 3 cycles then exec "/opt/MonitNotify.sh 'SRV-WARN: phpPHPver-fpm socket'"
else if recovered then exec "/opt/MonitNotify.sh 'SRV-OK: phpPHPver-fpm socket'"
if not exist for 1 cycles then restart