live, slinux: use systemctl --no-reload

Thanks boyarsh@ for m-p-d implementation and sem@ for the hint.
This commit is contained in:
Michael Shigorin 2013-02-01 15:07:32 +04:00
parent 7603f0728a
commit efd06839f7
2 changed files with 7 additions and 4 deletions

View File

@ -12,8 +12,11 @@ switch() {
esac esac
{ {
[ ! -x /bin/systemctl ] || /bin/systemctl $sc $1.service [ ! -x /bin/systemctl ] ||
[ ! -x /sbin/chkconfig ] || /sbin/chkconfig $1 $cc /bin/systemctl --no-reload $sc $1.service
[ ! -x /sbin/chkconfig ] ||
/sbin/chkconfig $1 $cc
} 2>/dev/null } 2>/dev/null
} }

View File

@ -18,12 +18,12 @@ sshd
" "
for i in $ENABLE; do for i in $ENABLE; do
[ -x /bin/systemctl ] && /bin/systemctl enable ${i}.service [ -x /bin/systemctl ] && /bin/systemctl --no-reload enable ${i}.service
[ -x /sbin/chkconfig ] && /sbin/chkconfig $i on [ -x /sbin/chkconfig ] && /sbin/chkconfig $i on
done done
for i in $DISABLE; do for i in $DISABLE; do
[ -x /bin/systemctl ] && /bin/systemctl disable ${i}.service [ -x /bin/systemctl ] && /bin/systemctl --no-reload disable ${i}.service
[ -x /sbin/chkconfig ] && /sbin/chkconfig $i off [ -x /sbin/chkconfig ] && /sbin/chkconfig $i off
done done
: :