From 582a7d25f2f844fe6297c22643b419a814c8b30d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 13 Apr 2019 11:00:43 -0500 Subject: [PATCH] update web services --- defaults.inc | 4 ++-- nodemgmt-scripts.sh | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index 7030c775..714f9312 100755 --- a/defaults.inc +++ b/defaults.inc @@ -7,9 +7,9 @@ WEBHOSTS=10.5.10.121,10.5.10.122,10.5.10.123 LBHOSTS=10.10.10.81,10.10.10.82,10.10.10.83 PRIMARYHOST=10.5.10.51 MYSQLMANAGER=10.5.10.50 -NODESERVICES=mysql,nginx,gitea,powerdns-admin,haproxy,keepalived,maxscale,postgresql +NODESERVICES=mysql,nginx,gitea,powerdns-admin,haproxy,keepalived,maxscale,postgresql,web MYSQLSERVICES_CHECK=mysql -WEBSERVICES_CHECK=nginx,gitea,powerdns-admin,keepalived +WEBSERVICES_CHECK=nginx,gitea,powerdns-admin,keepalived,php-fpm,php5.6-fpm,php7.2-fpm,php7.3-fpm LBSERVICES_CHECK=haproxy,keepalived noheader=' service status-check nightlyrenew backup report check checkcerts gitea ' CERT_DAEMON='/usr/bin/certbot' diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 399fc471..c9268cb4 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1544,6 +1544,12 @@ if [ ${action-x} ]; then SERVICE gitea stop SET-PERMISSIONS gitea SERVICE gitea start + elif [ "$2" = "web" ]; then + SERVICE nginx ${3} + SERVICE php-fpm ${3} + SERVICE php5.6-fpm ${3} + SERVICE php7.2-fpm ${3} + SERVICE php7.3-fpm ${3} else SERVICE ${2} ${3} ${4} fi;;