From bb55cf014af9d4e2f2fd788ba8373df76b7d6dd1 Mon Sep 17 00:00:00 2001
From: Ben Pfaff <blp@nicira.com>
Date: Wed, 30 Jul 2008 15:46:36 -0700
Subject: [PATCH] Debian: Listen on Unix domain socket for management
 connections.

---
 debian/openflow-switch.init | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init
index 0c8a8688e..5d658ed60 100755
--- a/debian/openflow-switch.init
+++ b/debian/openflow-switch.init
@@ -27,6 +27,7 @@ test -x $DAEMON || exit 0
 
 LOGDIR=/var/log/openflow
 PIDFILE=/var/run/$NAME.pid
+MGMTSOCK=/var/run/$NAME.socket
 DHCLIENT_PIDFILE=/var/run/dhclient.of0.pid
 DODTIME=1                   # Time to wait for the server to die, in seconds
                             # If this value is set too low you might not
@@ -209,7 +210,8 @@ case "$1" in
 	echo -n "Starting $DESC: "
 	start-stop-daemon --start --quiet --pidfile $PIDFILE \
 	    --exec $DAEMON -- nl:0 $CONTROLLER --detach --pidfile=$PIDFILE \
-            --verbose=ANY:console:emer $DAEMON_OPTS $SSL_OPTS
+            --verbose=ANY:console:emer --listen=punix:$MGMTSOCK \
+            $DAEMON_OPTS $SSL_OPTS
         if running; then
             echo "$NAME."
         else
-- 
2.47.0