Commit c18c7c68 authored by Vitaly Lipatov's avatar Vitaly Lipatov

serv-enable: small fix

parent d99b3f08
...@@ -25,7 +25,7 @@ __serv_enable() ...@@ -25,7 +25,7 @@ __serv_enable()
{ {
local SERVICE="$1" local SERVICE="$1"
is_service_autostart $1 && info "Service $1 already enabled for startup" && return is_service_autostart $1 && info "Service $1 is already enabled for startup" && return
case $SERVICETYPE in case $SERVICETYPE in
service-chkconfig) service-chkconfig)
...@@ -47,7 +47,7 @@ __serv_enable() ...@@ -47,7 +47,7 @@ __serv_enable()
sudocmd systemctl enable $1 sudocmd systemctl enable $1
;; ;;
runit) runit)
assure_exists $SERVICE epm assure $SERVICE
[ -r "/etc/sv/$SERVICE" ] || fatal "Can't find /etc/sv/$SERVICE" [ -r "/etc/sv/$SERVICE" ] || fatal "Can't find /etc/sv/$SERVICE"
sudocmd ln -s /etc/sv/$SERVICE /var/service/ sudocmd ln -s /etc/sv/$SERVICE /var/service/
;; ;;
......
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