live, slinux: use systemctl --no-reload
Thanks boyarsh@ for m-p-d implementation and sem@ for the hint.
This commit is contained in:
parent
7603f0728a
commit
efd06839f7
@ -12,8 +12,11 @@ switch() {
|
||||
esac
|
||||
|
||||
{
|
||||
[ ! -x /bin/systemctl ] || /bin/systemctl $sc $1.service
|
||||
[ ! -x /sbin/chkconfig ] || /sbin/chkconfig $1 $cc
|
||||
[ ! -x /bin/systemctl ] ||
|
||||
/bin/systemctl --no-reload $sc $1.service
|
||||
|
||||
[ ! -x /sbin/chkconfig ] ||
|
||||
/sbin/chkconfig $1 $cc
|
||||
} 2>/dev/null
|
||||
}
|
||||
|
||||
|
@ -18,12 +18,12 @@ sshd
|
||||
"
|
||||
|
||||
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
|
||||
done
|
||||
|
||||
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
|
||||
done
|
||||
:
|
||||
|
Loading…
Reference in New Issue
Block a user