@@ -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)
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 <azhou@nicira.com> --- utilities/ovs-dev.py | 5 +++++ 1 file changed, 5 insertions(+)