Sophie

Sophie

distrib > Fedora > 20 > i386 > by-pkgid > 1360c37f0e69b24a2ce0a037e237f5f5 > scriptlet

openvswitch-2.3.1-3.git20150327.fc20.i686.rpm

PREUN

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

POSTIN

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

# Package with native systemd unit file is installed for the first time

POSTUN

/bin/sh
    
systemctl daemon-reload >/dev/null 2>&1 || : 
if [ $1 -ge 1 ] ; then 
        # Package upgrade, not uninstall 
        systemctl try-restart openvswitch.service >/dev/null 2>&1 || : 
fi

Triggers

openvswitch < 1.9.0-1

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

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