Skip to content

Commit

Permalink
Update launch.sh
Browse files Browse the repository at this point in the history
Just a correction of port in use test algoritm.
This way we will not have problems when using port X and having some other service using zyX or any *X port
  • Loading branch information
nunojusto authored Aug 16, 2016
1 parent da82b34 commit 83d3e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ done
which netstat >/dev/null 2>&1 \
|| die "Must have netstat installed"

netstat -ltn | grep -qs "${PORT} .*LISTEN" \
netstat -ltn | grep -qs ":${PORT} .*LISTEN" \
&& die "Port ${PORT} in use. Try --listen PORT"

trap "cleanup" TERM QUIT INT EXIT
Expand Down

0 comments on commit 83d3e02

Please sign in to comment.