Skip to content

Commit

Permalink
Actually fix the freeze up caused by security scanners. (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
henry54809 authored Sep 25, 2021
1 parent 15c8366 commit c915538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/faucet
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,15 @@ if [[ -n $native ]]; then
[ -f $RYU_CONF ] || (echo $RYU_CONF not found.; exit 1)
export ${PREFIX}_EXCEPTION_LOG=$RUNTIME/${BASECMD}_exception.log
export ${PREFIX}_PROMETHEUS_PORT=${prom_pt:-$PROM_TARGET}
export ${PREFIX}_PROMETHEUS_ADDR=localhost
export ${PREFIX}_CONFIG=$RUNTIME/$BASECMD.yaml
export ${PREFIX}_EVENT_SOCK=$RUNTIME/$FAUCET_SOCK
export ${PREFIX}_CONFIG_STAT_RELOAD=1
export RYU_LISTEN_PORT=$ext_ofpt
export WSAPI_LISTEN_PORT=4567
echo Launching $BASECMD $RYU_LISTEN_PORT $FAUCET_PROMETHEUS_PORT $WSAPI_LISTEN_PORT
env | fgrep ${PREFIX}_
$BASECMD --ryu-config-file=$RYU_CONF --ryu-ofp-tcp-listen-port=$RYU_LISTEN_PORT --ryu-wsapi-port=$WSAPI_LISTEN_PORT --ryu-wsapi-host=localhost --ryu-ofp-listen-host=localhost &
$BASECMD --ryu-config-file=$RYU_CONF --ryu-ofp-tcp-listen-port=$RYU_LISTEN_PORT --ryu-wsapi-port=$WSAPI_LISTEN_PORT --ryu-wsapi-host=localhost --ryu-ofp-listen-host=localhost > /dev/null 2>&1 &
echo $! > $PID_FILE
echo Started $BASECMD pid $(< $PID_FILE)
else
Expand Down

0 comments on commit c915538

Please sign in to comment.