From 04bfc405ef2b7c46f869c54206e23d4ac76edb6b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 3 Jun 2023 17:50:09 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index c19c2b34..fb76bed7 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -626,7 +626,8 @@ SERVICE(){ fi checkhost=$(CHECK_HOST ${nip}) if [ "${checkhost}" != "false" ]; then - $NCMD systemctl $2 $1 >/dev/null 2>&1 + [ "${1}" = "pdnsadmin" ] && srva="pdnsadmin.socket pdnsadmin.service" && echo "both (pdnsadmin.socket pdnsadmin.service)" || srva=${1} + $NCMD systemctl ${2} ${srva} >/dev/null 2>&1 if [ "${3}" != "q" ]; then if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then echo -e "${idsCL[Green]}OK${idsCL[Default]}"