svc.sh: error handling and debug msg
This commit is contained in:
parent
da2f64b165
commit
e2de8ac908
4
svc.sh
4
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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user