Sophie

Sophie

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

audio-entropyd-2.0.3-6.fc20.x86_64.rpm

PREUN

/bin/sh

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

POSTIN

/bin/sh

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

Triggers

audio-entropyd < 2.0.3-1

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

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