Update services.inc

This commit is contained in:
2025-11-08 10:46:12 -06:00
parent 549cece2ed
commit ea4b49628d

View File

@@ -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