Update services.inc

This commit is contained in:
2024-01-16 22:06:55 -06:00
parent fe2a86ceda
commit 2ad935faf0

View File

@@ -401,6 +401,8 @@ SERVICE_MGMT(){
if [ ${QUIET} -eq 0 ] && [ "${SERVICE['action']}" != "status" ]; then
if [[ "enable,disable" = *"${SERVICE['action']}"* ]] || [ "${SERVICE['service']}" = "daemon-reload" ]; then
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
elif [[ "${srva}" = *".socket"* ]] && [ "$(${NCMD} systemctl is-active ${SERVICE['service']})" = "active" ]; then
echo -e "${idsCL[Green]}Done (& socket service)${idsCL[Default]}"
elif [[ "${srva}" = *"@pdns"* ]] && [ "$(${NCMD} systemctl is-active ${SERVICE['service']})" = "active" ]; then
echo -e "${idsCL[Green]}Done (& @pdns)${idsCL[Default]}"
elif [ "$(${NCMD} systemctl is-active ${SERVICE['service']})" = "active" ]; then