]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fixed service handling in specfile
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 24 Feb 2012 11:28:58 +0000 (12:28 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 24 Feb 2012 23:31:04 +0000 (16:31 -0700)
After adding the libvirt-guests service into usual runlevels, we used
to start the libvirt-guests service. However this is usually not a
good practice. As mentioned on fedoraproject wiki, the installations
can be in changeroots, in an installer context, or in other situations
where we don't want the services autostarted.

libvirt.spec.in

index 67cde23d9abfffda1726d565abf4d945851e33a7..072fd8eaac3c3d46bda3e5c090a6a04aa0025adb 100644 (file)
@@ -1027,14 +1027,6 @@ fi
 %if %{with_systemd}
 %else
 /sbin/chkconfig --add libvirt-guests
-if [ $1 -ge 1 ]; then
-    level=$(/sbin/runlevel | /bin/cut -d ' ' -f 2)
-    if /sbin/chkconfig --levels $level libvirt-guests; then
-        # this doesn't do anything but allowing for libvirt-guests to be
-        # stopped on the first shutdown
-        /sbin/service libvirt-guests start > /dev/null 2>&1 || true
-    fi
-fi
 %endif
 
 %postun client -p /sbin/ldconfig