Make COMMANDS option in openflow-switch defaults file work.
authorBen Pfaff <blp@nicira.com>
Mon, 3 Nov 2008 18:45:38 +0000 (10:45 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 3 Nov 2008 18:45:38 +0000 (10:45 -0800)
The setting was being accidentally ignored, so commands like "reboot", etc.
would not work at all.

debian/openflow-switch.init

index 082ec1588ea22851779470db54b838e47ae0f073..323c7f81ac66fdc29be4549e816bebb758c02208 100755 (executable)
@@ -259,7 +259,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
+            $DAEMON_OPTS $MGMT_OPTS $SSL_OPTS "$COMMAND_OPT"
         if running; then
             echo "$NAME."
         else