spec: don't touch sysv services in systemd package
Actually it can disable required services which have both sysv and systemd-style startup scripts.
This commit is contained in:
parent
f06284d2ba
commit
34b31c0f71
@ -584,21 +584,6 @@ done
|
|||||||
rm -f /etc/systemd/system/default.target
|
rm -f /etc/systemd/system/default.target
|
||||||
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
|
|
||||||
# Services to disable
|
|
||||||
#echo "--> Turning off unnecessary services..."
|
|
||||||
# FIXME: perhaps there is more elegant way to do this?
|
|
||||||
for f in /etc/init.d/*
|
|
||||||
do
|
|
||||||
srv=`basename $f`
|
|
||||||
[ $srv = 'functions' ] && continue
|
|
||||||
[ $srv = 'killall' ] && continue
|
|
||||||
[ $srv = 'halt' ] && continue
|
|
||||||
[ $srv = 'single' ] && continue
|
|
||||||
[ $srv = 'reboot' ] && continue
|
|
||||||
[ $srv = 'qubes_gui' ] && continue
|
|
||||||
chkconfig $srv off 2> /dev/null
|
|
||||||
done
|
|
||||||
|
|
||||||
DISABLE_SERVICES="alsa-store alsa-restore auditd avahi avahi-daemon backuppc cpuspeed crond"
|
DISABLE_SERVICES="alsa-store alsa-restore auditd avahi avahi-daemon backuppc cpuspeed crond"
|
||||||
DISABLE_SERVICES="$DISABLE_SERVICES fedora-autorelabel fedora-autorelabel-mark ipmi hwclock-load hwclock-save"
|
DISABLE_SERVICES="$DISABLE_SERVICES fedora-autorelabel fedora-autorelabel-mark ipmi hwclock-load hwclock-save"
|
||||||
DISABLE_SERVICES="$DISABLE_SERVICES mdmonitor multipathd openct rpcbind mcelog fedora-storage-init fedora-storage-init-late"
|
DISABLE_SERVICES="$DISABLE_SERVICES mdmonitor multipathd openct rpcbind mcelog fedora-storage-init fedora-storage-init-late"
|
||||||
|
Loading…
Reference in New Issue
Block a user