Configure neutron-ovs-cleanup to run after openvswitch
Closes-bug: #1269467 Change-Id: Icae00a907be88538485bdb36c51e3dbcb5949b4d
This commit is contained in:
parent
7ff898cc4f
commit
86a7ba3230
@ -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)
|
||||
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