Ubuntu Pastebin

Paste from serge at Wed, 4 May 2016 18:28:41 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
        # When renaming the .service file, systemd might become confused, we
        # need to ensure that the libvirtd daemon is fully stopped before
        # trying to restart it again. (Bug: #730604)
        if dpkg --compare-versions "$2" lt "1.2.6-1~"; then
            if [ -d /run/systemd/system ]; then
                [ ! -f /lib/systemd/system/libvirt-bin.service ] || invoke-rc.d libvirt-bin stop
            fi
            # Remove everything we know about libvirt-bin.service
            deb-systemd-helper purge libvirt-bin.service >/dev/null
            deb-systemd-helper unmask libvirt-bin.service >/dev/null
        fi
Download as text