Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > e12aa9bb44779fc3b3ef6b49da8ba01d > scriptlet

distcc-server-3.3.2-2.mga7.i586.rpm

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