Update services.inc
This commit is contained in:
@@ -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
|
# 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
|
[ ! -f ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary ] && touch ${NM_TMPFOLDER}/.singleserver.${1^^}.secondary
|
||||||
for stc in "${!servicestocheck}"; do
|
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"
|
[ "${stc}" = "pdnsadmin" ] && stc="pdnsadmin.socket pdnsadmin.service"
|
||||||
/bin/systemctl stop ${stc} & >/dev/null 2>&1
|
/bin/systemctl stop ${stc} & >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
@@ -123,7 +123,6 @@ Server did not start serving DNS requests within 10mins you moron...." 1
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SERVICE_MGMT(){
|
SERVICE_MGMT(){
|
||||||
declare -A SERVICE
|
declare -A SERVICE
|
||||||
QUIET=0
|
QUIET=0
|
||||||
|
|||||||
Reference in New Issue
Block a user