diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1fe94994..bc0b223c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2050,7 +2050,7 @@ SINGLE_SERVER_SERVICE_CHECK(){ if [[ ${local_ips} = *10.10.1.120* ]]; then if [ -f /mnt/web-data/mounted ]; then for stc in "${services_to_check[@]}"; do - if [ "$(systemctl is-active stc).service" != "active" ]; then + if [ "$(systemctl is-active ${stc}).service" != "active" ]; then [ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service" for nip in "${WEB_HOSTS[@]}"; do if [[ "${local_ip}" != *"${nip}"* ]]; then