Configure neutron-ovs-cleanup to run after openvswitch

Closes-bug: #1269467
Change-Id: Icae00a907be88538485bdb36c51e3dbcb5949b4d
This commit is contained in:
Michael Kerrin 2014-06-06 12:45:26 -04:00
parent 7ff898cc4f
commit 86a7ba3230
2 changed files with 14 additions and 0 deletions

View File

@ -8,4 +8,6 @@ ln -sf $NEUTRON_VENV_DIR/bin/neutron-ovs-cleanup /usr/local/bin/neutron-ovs-clea
DIB_INIT_SYSTEM=$(dib-init-system) DIB_INIT_SYSTEM=$(dib-init-system)
if [ "$DIB_INIT_SYSTEM" == "systemd" ]; then 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 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 fi

View File

@ -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