From 8064a9f0445c9fab8cbe20c74d9189c5d6d5b67f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 1 Nov 2023 21:07:03 -0500 Subject: [PATCH] Update services.inc --- inc/services.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/services.inc b/inc/services.inc index 609d17dc..52940ff5 100755 --- a/inc/services.inc +++ b/inc/services.inc @@ -325,8 +325,14 @@ SERVICE(){ checkhost=$(CHECK_HOST ${nip}) if [ "${checkhost}" != "false" ]; then [ "${1}" = "pdnsadmin" ] && srva="pdnsadmin.socket pdnsadmin.service" || srva=${1} - $NCMD systemctl ${2} ${srva} >/dev/null 2>&1 - if [ "${3}" != "q" ]; then + if [ "${2}" != "status" ]; then + $NCMD systemctl ${2} ${srva} >/dev/null 2>&1 + else + echo + $NCMD systemctl ${2} ${srva} + echo + fi + if [ "${3}" != "q" ] && [ "${2}" != "status" ]; then if [[ "enable,disable" = *"${2}"* ]] || [ "${1}" = "daemon-reload" ]; then echo -e "${idsCL[Green]}Done${idsCL[Default]}" elif [ "$(${NCMD} systemctl is-active ${1})" = "active" ]; then