[ovs-dev] [PATCH] debian: Upgrade database before starting ovsdb-server.
Ben Pfaff
blp at nicira.com
Wed Mar 17 18:02:48 UTC 2010
The XenServer init script has been upgrading the database before starting
ovsdb-server for some time now, but the corresponding change was never
made to the Debian init script. This commit fixes that.
---
debian/openvswitch-switch.init | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init
index 3a7f292..7ce9a64 100755
--- a/debian/openvswitch-switch.init
+++ b/debian/openvswitch-switch.init
@@ -210,6 +210,11 @@ case "$1" in
ovsdb-tool -vANY:console:emer \
create /etc/openvswitch-switch/conf \
/usr/share/openvswitch/vswitch.ovsschema
+ else
+ # Upgrade or downgrade schema and compact database.
+ ovsdb-tool -vANY:console:emer \
+ convert /etc/openvswitch-switch/conf \
+ /usr/share/openvswitch/vswitch.ovsschema
fi
if test "$ENABLE_MONITOR" = y; then
--
1.6.6.1
More information about the dev
mailing list