Update services.inc

This commit is contained in:
2024-01-16 22:05:34 -06:00
parent 421ed67cac
commit fe2a86ceda

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}" = *"@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
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
elif [ "${SERVICE['action']}" = "stop" ]; then