Merge "Configure neutron-ovs-cleanup to run after openvswitch"
This commit is contained in:
commit
95cb67a28f
@ -9,4 +9,6 @@ ln -sf $NEUTRON_VENV_DIR/bin/neutron-ovs-cleanup /usr/local/bin/neutron-ovs-clea
|
||||
DIB_INIT_SYSTEM=$(dib-init-system)
|
||||
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
|
||||
install -D -g root -o root -m 0755 ${SCRIPTDIR}/neutron-ovs-cleanup.service /usr/lib/systemd/system/neutron-ovs-cleanup.service
|
||||
elif [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
|
||||
install -D -g root -o root -m 0755 ${SCRIPTDIR}/neutron-ovs-cleanup.conf /etc/init/neutron-ovs-cleanup.conf
|
||||
fi
|
||||
|
@ -0,0 +1,12 @@
|
||||
# neutron-ovs-cleanup
|
||||
#
|
||||
|
||||
start on started openvswitch-switch
|
||||
stop on runlevel [!2345]
|
||||
|
||||
pre-start script
|
||||
[ ! -e /etc/neutron/neutron.conf ] && exit 0
|
||||
|
||||
start-stop-daemon --start --chuid neutron --exec /usr/local/bin/neutron-ovs-cleanup -- \
|
||||
--config-dir /etc/neutron
|
||||
end script
|
Loading…
Reference in New Issue
Block a user