Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 73ea0213850db386a1caababe808ae7f > scriptlet

systemtap-initscript-1.6-1.fc14.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