Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 3eab004feb5e895049d3a9298cc3baa7 > scriptlet

unbound-1.4.21-1.fc18.x86_64.rpm

PREUN

/bin/sh

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

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

POSTIN

/bin/sh

if [ $1 -eq 1 ] ; then 
        # Initial installation 
        /usr/bin/systemctl preset unbound.service >/dev/null 2>&1 || : 
fi 

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

/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :

Triggers

unbound < 1.4.12-4

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

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