From: Ben Pfaff Date: Mon, 19 Jan 2009 23:54:22 +0000 (-0800) Subject: debian: Avoid aborting on switch startup when $COMMANDS is empty. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b7a001fb7d2294669edf14568461ed05d45b8b0;p=openvswitch debian: Avoid aborting on switch startup when $COMMANDS is empty. --- diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init index fa17d2ba..f4571b2a 100755 --- a/debian/openflow-switch.init +++ b/debian/openflow-switch.init @@ -269,7 +269,7 @@ case "$1" in COMMAND_OPT= if test -n "$COMMANDS"; then - COMMAND_OPT="--command-acl=$COMMANDS" + COMMAND_OPT="--command-acl='$COMMANDS'" fi if test "$MODE" = out-of-band; then @@ -284,7 +284,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 $MONITOR_OPT $SSL_OPTS "$COMMAND_OPT" + $DAEMON_OPTS $MGMT_OPTS $MONITOR_OPT $SSL_OPTS $COMMAND_OPT if running; then echo "$NAME." else