Browse code

Debian: use libvirt-bin when needed

libvirtd is the new name of the init script in Debian testing.
libvirt-bin is still in use on Debian Wheezy.

Since I222b71962f49896063910ff2a25e4f57be4bf819, libvirtd is the
default for Debian, this break the compatibility with Debian Wheezy.

With this patch, we use libvirt-bin only if there is no
/etc/init.d/libvirtd init script.

Change-Id: I13694fef93d36c2e128e15e7dbfaec9230335585

Gonéri Le Bouder authored on 2014/09/17 18:55:31
Showing 1 changed files
... ...
@@ -57,7 +57,9 @@ cgroup_device_acl = [
57 57
 EOF
58 58
     fi
59 59
 
60
-    if [ "$os_VENDOR" = "Ubuntu" ]; then
60
+    # Since the release of Debian Wheezy the libvirt init script is libvirtd
61
+    # and not libvirtd-bin anymore.
62
+    if is_ubuntu && [ ! -f /etc/init.d/libvirtd ]; then
61 63
         LIBVIRT_DAEMON=libvirt-bin
62 64
     else
63 65
         LIBVIRT_DAEMON=libvirtd