From 7b8a8c509fdabe9a81b7c3208d28966ad42f9978 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Thu, 6 Nov 2008 12:42:07 -0800 Subject: [PATCH] Add --monitor flag to default init scripts for secchan. --- debian/openflow-switch.default | 8 ++++++-- debian/openflow-switch.init | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/debian/openflow-switch.default b/debian/openflow-switch.default index 32761eb10..9529ddf3a 100644 --- a/debian/openflow-switch.default +++ b/debian/openflow-switch.default @@ -98,9 +98,13 @@ SWITCH_IP=dhcp # MGMT_VCONNS: List of vconns (space-separated) on which secchan # should listen for management connections from dpctl, etc. # openflow-switchui by default connects to -# unix:/var/run/secchan.socket, so do not disable this if you want to +# unix:/var/run/secchan.mgmt, so do not disable this if you want to # use openflow-switchui. -MGMT_VCONNS="punix:/var/run/secchan.socket" +MGMT_VCONNS="punix:/var/run/secchan.mgmt" + +# MONITOR_VCONN: Name of vconn on which secchan should listen for +# monitoring connections from dpctl. +MONITOR_VCONN="punix:/var/run/secchan.monitor" # COMMANDS: Access control list for the commands that can be executed # remotely over the OpenFlow protocol, as a comma-separated list of diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init index fcac21f91..86a018c73 100755 --- a/debian/openflow-switch.init +++ b/debian/openflow-switch.init @@ -247,6 +247,11 @@ case "$1" in MGMT_OPTS="$MGMT_OPTS --listen=$vconn" done + MONITOR_OPT= + if test -n "$MONITOR_VCONN"; then + MONITOR_OPT="--monitor=$MONITOR_VCONN" + fi + COMMAND_OPT= if test -n "$COMMANDS"; then COMMAND_OPT="--command-acl=$COMMANDS" @@ -264,7 +269,7 @@ case "$1" in start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- nl:0 $CONTROLLER --detach --pidfile=$PIDFILE \ --verbose=ANY:console:emer --verbose=ANY:syslog:err --log-file \ - $DAEMON_OPTS $MGMT_OPTS $SSL_OPTS "$COMMAND_OPT" + $DAEMON_OPTS $MGMT_OPTS $MONITOR_OPT $SSL_OPTS "$COMMAND_OPT" if running; then echo "$NAME." else -- 2.43.0