From ea4b49628d07e7e5b698a144946ea82bc28493a2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 8 Nov 2025 10:46:12 -0600 Subject: [PATCH] Update services.inc --- inc/services.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc/services.inc b/inc/services.inc index b42e12e0..6b296b54 100755 --- a/inc/services.inc +++ b/inc/services.inc @@ -100,7 +100,7 @@ Server did not start serving DNS requests within 10mins you moron...." 1 # if [ -f ${NM_TMPFOLDER}/.singleserver.${1^^}.primary ] || [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary ] || [ $(expr $(date +%s) - $(stat -c %Y ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary)) -ge 300 ]; then [ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary ] && touch ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary for stc in "${!servicestocheck}"; do - if [ systemctl is-active --quiet ${stc} ]; then + if [ systemctl is-active --quiet "${stc}" ]; then [ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service" /bin/systemctl stop ${stc} & >/dev/null 2>&1 fi @@ -123,7 +123,6 @@ Server did not start serving DNS requests within 10mins you moron...." 1 fi } - SERVICE_MGMT(){ declare -A SERVICE QUIET=0