From ae532c3336e33e880c6555907bf62918eaccf751 Mon Sep 17 00:00:00 2001 From: Shiham Abdul Rahman Date: Tue, 13 Sep 2022 14:40:28 +0500 Subject: [PATCH] service monitoring --- startservices.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/startservices.sh b/startservices.sh index 8795e33..c6330e9 100644 --- a/startservices.sh +++ b/startservices.sh @@ -3,8 +3,13 @@ #Start Zabbix /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf -#Start Nginx -/usr/sbin/nginx -g 'daemon on; master_process on;' - #Start Php-fpm -/usr/sbin/php-fpm7.4 --nodaemonize --fpm-config /etc/php/7.4/fpm/php-fpm.conf +/usr/sbin/php-fpm7.4 --fpm-config /etc/php/7.4/fpm/php-fpm.conf & + +#Start Nginx +/usr/sbin/nginx -g 'daemon off; master_process on;' & + +# Wait for any process to exit +wait -n +# Exit with status of process that exited first +exit $?