Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main > by-pkgid > 13f218e0bc296a25724d553df0fc65a7 > scriptlet

systemtap-initscript-1.8-6.el5.x86_64.rpm

PREUN

/bin/sh
# Check that this is the actual deinstallation of the package, as opposed to
# just removing the old package on upgrade.
if [ $1 = 0 ] ; then
    /sbin/service systemtap stop >/dev/null 2>&1
    /sbin/chkconfig --del systemtap
fi
exit 0

POSTIN

/bin/sh
/sbin/chkconfig --add systemtap
exit 0

POSTUN

/bin/sh
# Check whether this is an upgrade of the package.
# If so, restart the service if it's running
if [ "$1" -ge "1" ] ; then
    /sbin/service systemtap condrestart >/dev/null 2>&1 || :
fi
exit 0