Sophie

Sophie

distrib > Fedora > 20 > x86_64 > by-pkgid > 6a444b3adf7a1f88b2227d9e09b0990f > scriptlet

openstack-neutron-2013.2.4-7.fc20.noarch.rpm

PREIN

/bin/sh
getent group neutron >/dev/null || groupadd -r neutron
getent passwd neutron >/dev/null || \
    useradd -r -g neutron -d /var/lib/neutron -s /sbin/nologin \
    -c "OpenStack Neutron Daemons" neutron
exit 0

PREUN

/bin/sh

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

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

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

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

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

POSTIN

/bin/sh

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

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

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

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

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

POSTUN

/bin/sh

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

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

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

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

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

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

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

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

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

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

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