Commit 1dab2099 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv-status: do not print out call command to stderr

parent 4bd27f49
...@@ -58,15 +58,18 @@ serv_status() ...@@ -58,15 +58,18 @@ serv_status()
{ {
is_service_autostart $1 && echo "Service $1 is sheduled to run on startup" || echo "Service $1 will NOT run on startup" is_service_autostart $1 && echo "Service $1 is sheduled to run on startup" || echo "Service $1 will NOT run on startup"
local SERVICE="$1"
shift
case $SERVICETYPE in case $SERVICETYPE in
service-chkconfig|service-upstart) service-chkconfig|service-upstart)
sudocmd service $1 status sudocmd service $SERVICE status "$@"
;; ;;
service-update) service-update)
sudocmd /etc/init.d/$1 statuss sudocmd /etc/init.d/$SERVICE status "$@"
;; ;;
systemd) systemd)
sudocmd systemctl status $1 sudocmd systemctl status $service "$@"
;; ;;
*) *)
fatal "Do not known command for $SERVICETYPE" fatal "Do not known command for $SERVICETYPE"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment