Sophie

Sophie

distrib > Fedora > 15 > x86_64 > media > os > by-pkgid > 6e97b1c90f7955a2f617aed0c8bc25ad > scriptlet

libvirt-client-0.8.8-4.fc15.x86_64.rpm

PREUN

/bin/sh

if [ $1 = 0 ]; then
    /sbin/chkconfig --del libvirt-guests
    rm -f /var/lib/libvirt/libvirt-guests
fi

POSTIN

/bin/sh

/sbin/ldconfig
/sbin/chkconfig --add libvirt-guests
if [ $1 -ge 1 ]; then
    level=$(/sbin/runlevel | /bin/cut -d ' ' -f 2)
    if /sbin/chkconfig --list libvirt-guests | /bin/grep -q $level:on ; 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