Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > 09fe0ec7e9f916f60831185c01f7b2a3 > scriptlet

systemtap-initscript-1.3-2.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