PREUN
/bin/sh
#[ $1 -eq 0 ] && /sbin/chkconfig --del distccd ||:
if [ $1 -eq 0 ] ; then
# Package removal, not upgrade
/usr/bin/systemctl --no-reload disable distccd.service > /dev/null 2>&1 || :
/usr/bin/systemctl stop distccd.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
#[ $1 -lt 2 ] && /sbin/chkconfig --add distccd ||:
if [ $1 -eq 1 ] ; then
# Initial installation
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
POSTUN
/bin/sh
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
/usr/bin/systemctl try-restart distccd.service >/dev/null 2>&1 || :
fi