Runs ovsdb-server and ovs-vswitch with --monitor option. This feature is useful for testing daemon monitoring together with --user option.
Signed-off-by: Andy Zhou <az...@nicira.com> --- utilities/ovs-dev.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utilities/ovs-dev.py b/utilities/ovs-dev.py index 1f9dbd7..fb8a69d 100755 --- a/utilities/ovs-dev.py +++ b/utilities/ovs-dev.py @@ -244,6 +244,9 @@ def run(): _sh("chown", options.user, "-R", RUNDIR); opts = ["--user", options.user] + opts + if (options.monitor): + opts = ["--monitor"] + opts + _sh(*(["ovsdb-server", "--remote=punix:%s/run/db.sock" % VARDIR, "--remote=db:Open_vSwitch,Open_vSwitch,manager_options", @@ -431,6 +434,8 @@ def main(): help="run all daemons as a non root user") group.add_option("-u", dest="as_me", action="store_true", help="set --user to the current user") + group.add_option("-m", "--monitor", dest="monitor", action="store_true", + help="run daemons with --monitor option") parser.add_option_group(group) -- 1.9.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev