Debian: Listen on Unix domain socket for management connections.

This commit is contained in:
Ben Pfaff
2008-07-30 15:46:36 -07:00
parent bab6bdbe58
commit bb55cf014a
+3 -1
View File
@@ -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