From 7b7a001fb7d2294669edf14568461ed05d45b8b0 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 19 Jan 2009 15:54:22 -0800 Subject: [PATCH] debian: Avoid aborting on switch startup when $COMMANDS is empty. --- debian/openflow-switch.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2