Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 967b67835e407bdb129d1d34dc416ed0 > scriptlet

abrt-addon-vmcore-2.0.7-3.mga2.i586.rpm

PREUN

/bin/sh
if [ "$1" -eq "0" ] ; then
    service abrt-oops stop >/dev/null 2>&1
    /sbin/chkconfig --del abrt-oops
fi
#systemd (not tested):
if [ "$1" -eq "0" ] ; then
    /bin/systemctl stop abrt-oops.service >/dev/null 2>&1 || :
    /bin/systemctl disable abrt-oops.service >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ]; then
    /sbin/chkconfig --add abrt-oops
fi

POSTTRANS

/bin/sh
service abrt-oops condrestart >/dev/null 2>&1 || :