summaryrefslogtreecommitdiffstats
path: root/htgend
blob: 9f3ba6f08d7a7d33452be6cc10993aba0386cf4c (plain)
1
2
3
4
5
6
7
#! /bin/sh
set -euf
HTGEN_PROG="${HTGEN_SH-$(dirname "$(readlink -f "$0")")/htgen.sh}"
HTGEN_HOST="${HTGEN_HOST-0}"
HTGEN_PORT="${HTGEN_PORT-42380}"
TCPSERVER_OPTS='-c 423 -t 2 -D'
exec tcpserver $TCPSERVER_OPTS "$HTGEN_HOST" "$HTGEN_PORT" "$HTGEN_PROG"