(I'm not on the list as I contribute rarely, please CC me on any replies)

This update corrects an error in netstat arguments for OpenBSD's netstat:

netstat: unknown option -- t

Updated patch-utils_launch_sh below. Hope this is useful.

Index: utils/launch.sh
--- utils/launch.sh.orig
+++ utils/launch.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/ksh
 
 usage() {
     if [ "$*" ]; then
@@ -65,7 +65,7 @@ done
 which netstat >/dev/null 2>&1 \
     || die "Must have netstat installed"
 
-netstat -ltn | grep -qs "${PORT} .*LISTEN" \
+netstat -ln -p tcp | grep -qs "${PORT} .*LISTEN" \
     && die "Port ${PORT} in use. Try --listen PORT"
 
 trap "cleanup" TERM QUIT INT EXIT

Reply via email to