From e2de8ac90854fa35db0d307af209165253555d1d Mon Sep 17 00:00:00 2001 From: mollusk Date: Tue, 26 Oct 2021 20:57:07 -0700 Subject: [PATCH] svc.sh: error handling and debug msg --- svc.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svc.sh b/svc.sh index 516cdfc..e79fdef 100755 --- a/svc.sh +++ b/svc.sh @@ -34,8 +34,12 @@ NC='\033[0m' # No Color if [[ -f "/usr/bin/sv " ]];then serviceManager="runit" + echo -e "${LGREEN}Detected Runit${NC}\n" elif [[ -f "/usr/bin/systemctl" ]];then serviceManager="systemd" + echo -e "${LGREEN}Detected SystemD${NC}\n" +else + echo -e "${LRED}no supported service manager found${NC}\n" fi