PREUN
/bin/sh
if [ "$1" -eq "0" ] ; then
service abrt-ccpp stop >/dev/null 2>&1
/sbin/chkconfig --del abrt-ccpp
fi
#systemd (not tested):
if [ "$1" -eq "0" ] ; then
/bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
/bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || :
fi
POSTIN
/bin/sh
chown -R abrt:abrt /var/cache/abrt-di
#if [ $1 -eq 1 ]; then
/sbin/chkconfig --add abrt-ccpp
#fi
if [ "$1" -eq "0" ] ; then
/bin/systemctl stop abrt-ccpp.service >/dev/null 2>&1 || :
/bin/systemctl disable abrt-ccpp.service >/dev/null 2>&1 || :
fi
POSTTRANS
/bin/sh
service abrt-ccpp condrestart >/dev/null 2>&1 || :