Commit 4829ba31 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv-list: add general realization by default

parent 0f4d8688
...@@ -22,9 +22,8 @@ ...@@ -22,9 +22,8 @@
serv_list() serv_list()
{ {
case $SERVICETYPE in case $SERVICETYPE in
service-chkconfig|service-upstart) # service-chkconfig)
sudocmd service --status-all # ;;
;;
service-upstart) service-upstart)
sudocmd initctl list sudocmd initctl list
;; ;;
...@@ -35,7 +34,11 @@ serv_list() ...@@ -35,7 +34,11 @@ serv_list()
sudocmd systemctl list-units sudocmd systemctl list-units
;; ;;
*) *)
fatal "Do not known command for $SERVICETYPE" load_helper serv-list_all
load_helper serv-status
for i in $(serv_list_all) ; do
is_service_running $i && echo $i
done
;; ;;
esac esac
} }
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