diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 80367c51..f3e21851 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2058,14 +2058,17 @@ SINGLE_SERVER_SERVICE_CHECK(){ ssh root@${nip} /bin/systemctl stop ${stc} fi done - /bin/systemctl start gitea & + /bin/systemctl start ${stc} & fi done fi else - /bin/systemctl stop gitea & - /bin/systemctl stop pdnsadmin.service pdnsadmin.socket & + for stc in "${services_to_check[@]}"; do + [ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service" + /bin/systemctl stop ${stc} & + done + fi if [ "$(systemctl is-active nginx)" != "active" ]; then