Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > d0473c6f5f974c31405771cde4cc0c51 > scriptlet

nsca-2.9.1-9.fc20.x86_64.rpm

PREUN

/bin/sh

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

POSTIN

/bin/sh

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