svc.sh: check if arg 2 is present for up cmd

This commit is contained in:
mollusk 2021-10-31 21:35:49 -07:00
parent 5542e2ab9a
commit 5f289995ba

5
svc.sh
View File

@ -133,7 +133,12 @@ systemd(){
echo echo
;; ;;
up) up)
if [[ ! -z "${2}" ]];then
systemctl status "${2}"
else
systemctl --type=service --state=running systemctl --type=service --state=running
fi
;; ;;
start) start)