diff options
author | Andy Zhou <azhou@nicira.com> | 2015-02-20 13:01:36 -0800 |
---|---|---|
committer | Andy Zhou <azhou@nicira.com> | 2015-02-22 16:59:03 -0800 |
commit | 4b814d41b816dc868590646d594ce701d3e13211 (patch) | |
tree | 6c9db0aa945388d4b9656115dce501ac7f5766f4 /tutorial/ovs-sandbox | |
parent | 4cf272aaf6bc18cb87931c4487095ec1372a0ffd (diff) | |
download | openvswitch-4b814d41b816dc868590646d594ce701d3e13211.tar.gz |
ovs-sandbox: Add -d option to run ovsdb-server under GDB
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'tutorial/ovs-sandbox')
-rwxr-xr-x | tutorial/ovs-sandbox | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tutorial/ovs-sandbox b/tutorial/ovs-sandbox index bced8f468..1504ea9f8 100755 --- a/tutorial/ovs-sandbox +++ b/tutorial/ovs-sandbox @@ -42,7 +42,8 @@ rungdb() { fi } -gdb_vswitchd=false; +gdb_vswitchd=false +gdb_ovsdb=false builddir= srcdir= schema= @@ -87,6 +88,7 @@ These options force ovs-sandbox to use a particular OVS build: These options force ovs-sandbox to use an installed Open vSwitch: -i, --installed use installed Open vSwitch -g, --gdb-vswitchd run ovs-vswitchd under gdb + -d, --gdb-ovsdb run ovsdb-server under gdb -S, --schema=FILE use FILE as vswitch.ovsschema Other options: @@ -125,6 +127,9 @@ EOF -g|--gdb-v*) gdb_vswitchd=true ;; + -d|--gdb-o*) + gdb_ovsdb=true + ;; -*) echo "unrecognized option $option (use --help for help)" >&2 exit 1 @@ -227,7 +232,7 @@ trap 'kill `cat "$sandbox"/*.pid`' 0 1 2 3 13 14 15 # Create database and start ovsdb-server. touch "$sandbox"/.conf.db.~lock~ run ovsdb-tool create conf.db "$schema" -run ovsdb-server --detach --no-chdir --pidfile -vconsole:off --log-file \ +rungdb $gdb_ovsdb ovsdb-server --detach --no-chdir --pidfile -vconsole:off --log-file \ --remote=punix:"$sandbox"/db.sock # Start ovs-vswitchd. |