This commit is contained in:
2024-01-16 21:53:48 -06:00
parent e50a268ca2
commit 45f255cfca
2 changed files with 8 additions and 2 deletions

View File

@@ -384,7 +384,13 @@ SERVICE_MGMT(){
fi
fi
else
[ "${SERVICE['service']}" = "pdnsadmin" ] && srva="pdnsadmin.socket pdnsadmin.service" || srva=${SERVICE['service']}
if [ "${SERVICE['service']}" = "pdnsadmin" ]; then
srva="pdnsadmin.socket pdnsadmin.service"
elif [ "${SERVICE['service']}" = "syncthing" ] && [[ "${NM_SERVICES_CHECK[${NTYPE}]}" = *"syncthing@pdns"* ]]; then
srva="syncthing syncthing@pdns"
else
srva=${SERVICE['service']}
fi
if [ "${SERVICE['action']}" != "status" ]; then
${NCMD} systemctl ${SERVICE['action']} ${srva} >/dev/null 2>&1
else