ports/www/novnc/files/patch-utils_launch.sh
Marcelo Araujo f0d6b930db - Fix stage and fix netstat invocation in launch.sh.
PR:		ports/222176
Submitted by:	John Hein <z7dr6ut7gs@snkmail.com>
2017-09-22 04:56:37 +00:00

11 lines
359 B
Bash

--- utils/launch.sh.orig 2017-01-12 19:36:42 UTC
+++ utils/launch.sh
@@ -69,7 +69,7 @@ done
which netstat >/dev/null 2>&1 \
|| die "Must have netstat installed"
-netstat -ltn | grep -qs "${PORT} .*LISTEN" \
+netstat -a -p tcp -n | grep -qs "${PORT} .*LISTEN" \
&& die "Port ${PORT} in use. Try --listen PORT"
trap "cleanup" TERM QUIT INT EXIT