Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > 0f4739a286fb3a17bd7ff8e9a158f824 > scriptlet

dspam-3.10.1-1.fc16.i686.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ] ; then
    # Package removal, not upgrade
    /bin/systemctl --no-reload disable dspam.service > /dev/null 2>&1 || :
    /bin/systemctl stop dspam.service > /dev/null 2>&1 || :
fi

POSTIN

/bin/sh
if [ $1 -eq 1 ] ; then 
    # Initial installation 
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

POSTUN

/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
	/sbin/chkconfig --del httpd >/dev/null 2>&1 || :
    # Package upgrade, not uninstall
    /bin/systemctl try-restart dspam.service >/dev/null 2>&1 || :
fi