From: Ben Pfaff Date: Wed, 29 Oct 2008 23:19:43 +0000 (-0700) Subject: Fix support for out-of-band control in Debian switch init script. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60bcda03814b245e9ede38e78561726cd41d7893;p=openvswitch Fix support for out-of-band control in Debian switch init script. Not tested. --- diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init index 79457997..13f05dd3 100755 --- a/debian/openflow-switch.init +++ b/debian/openflow-switch.init @@ -239,6 +239,10 @@ case "$1" in COMMAND_OPT="--commands=$COMMANDS" fi + if test "$MODE" = out-of-band; then + DAEMON_OPTS="$DAEMON_OPTS --out-of-band" + fi + echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile $PIDFILE \ --exec $DAEMON -- nl:0 $CONTROLLER --detach --pidfile=$PIDFILE \