Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > bc7cfec4c1525661a56eddc584f48995 > scriptlet

openvswitch-1.11.0-2.mga4.x86_64.rpm

PREUN

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

POSTIN

/bin/sh
    # Package install, not upgrade
    if [ $1 -eq 1 ]; then
        /bin/systemctl daemon-reload >dev/null || :
    fi

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

POSTUN

/bin/sh
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
    if [ "$1" -ge "1" ] ; then
    # Package upgrade, not uninstall
        /bin/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 || :