From 34b31c0f7109bb2d8c5b9caf793a3704117070dc Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 9 Mar 2013 03:19:41 +0100 Subject: [PATCH] spec: don't touch sysv services in systemd package Actually it can disable required services which have both sysv and systemd-style startup scripts. --- rpm_spec/core-vm.spec | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/rpm_spec/core-vm.spec b/rpm_spec/core-vm.spec index 3977ccf..d8615f1 100644 --- a/rpm_spec/core-vm.spec +++ b/rpm_spec/core-vm.spec @@ -584,21 +584,6 @@ done rm -f /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="$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"