Update launch.sh
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
This commit is contained in:
parent
d3cfa2d79b
commit
4d9cd40657
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user