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
|
if [[ -f "/usr/bin/sv " ]];then
|
||||||
serviceManager="runit"
|
serviceManager="runit"
|
||||||
|
echo -e "${LGREEN}Detected Runit${NC}\n"
|
||||||
elif [[ -f "/usr/bin/systemctl" ]];then
|
elif [[ -f "/usr/bin/systemctl" ]];then
|
||||||
serviceManager="systemd"
|
serviceManager="systemd"
|
||||||
|
echo -e "${LGREEN}Detected SystemD${NC}\n"
|
||||||
|
else
|
||||||
|
echo -e "${LRED}no supported service manager found${NC}\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user