Commit 09aefe20 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv-enable: use chkconfig --add and chkconfig SERVICE on

parent 683c7043
...@@ -28,9 +28,11 @@ serv_enable() ...@@ -28,9 +28,11 @@ serv_enable()
case $SERVICETYPE in case $SERVICETYPE in
service-chkconfig) service-chkconfig)
sudocmd chkconfig --add $1 sudocmd chkconfig --add $1 || return
sudocmd chkconfig $1 on
;; ;;
service-upstart) service-upstart)
sudocmd chkconfig --add $1 || return
sudocmd chkconfig $1 on sudocmd chkconfig $1 on
;; ;;
service-initd|service-update) service-initd|service-update)
......
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