diff --git a/features.in/live/live/image-scripts.d/03-services b/features.in/live/live/image-scripts.d/03-services index e1a26309..84496821 100755 --- a/features.in/live/live/image-scripts.d/03-services +++ b/features.in/live/live/image-scripts.d/03-services @@ -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 } diff --git a/features.in/slinux/live/image-scripts.d/50-services b/features.in/slinux/live/image-scripts.d/50-services index 662ae12c..7a588d53 100755 --- a/features.in/slinux/live/image-scripts.d/50-services +++ b/features.in/slinux/live/image-scripts.d/50-services @@ -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 :