Sophie

Sophie

distrib > Fedora > 13 > i386 > by-pkgid > 3a2a29e6665e859493dc4aa414f070be > scriptlet

systemtap-initscript-1.4-6.fc13.i686.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