Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 757e401d7c77ac223ff97456b8ed8889 > scriptlet

smokeping-2.6.9-1.fc18.noarch.rpm

PREUN

/bin/sh

if [ $1 -eq 0 ] ; then 
        # Package removal, not upgrade 
        /usr/bin/systemctl --no-reload disable smokeping.service > /dev/null 2>&1 || : 
        /usr/bin/systemctl stop smokeping.service > /dev/null 2>&1 || : 
fi

POSTIN

/bin/sh

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        /usr/bin/systemctl preset smokeping.service >/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 smokeping.service >/dev/null 2>&1 || : 
fi

Triggers

smokeping < 2.4.2-13

/bin/sh
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply smokeping
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save smokeping >/dev/null 2>&1 ||:

# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del smokeping >/dev/null 2>&1 || :
/bin/systemctl try-restart smokeping.service >/dev/null 2>&1 || :