diff --git a/svc.sh b/svc.sh index 6d7e7a0..5a33404 100755 --- a/svc.sh +++ b/svc.sh @@ -133,7 +133,12 @@ systemd(){ echo ;; up) - systemctl --type=service --state=running + if [[ ! -z "${2}" ]];then + systemctl status "${2}" + else + systemctl --type=service --state=running + fi + ;; start)