httpd.sh: prefix startup information with '#' - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7e0ebe1832d1da8872703c7d2518a56b9f55fa28
(DIR) parent a02adcfc771484c6b70503d1f25f03680f1402a1
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 15 Aug 2025 14:09:31 +0200
httpd.sh: prefix startup information with '#'
Diffstat:
M minihttpd/httpd.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/minihttpd/httpd.sh b/minihttpd/httpd.sh
@@ -90,7 +90,7 @@ scriptdir="${rootdir}/cgi-bin"
if test "$1" != "httpd"; then
export SERVER_NAME="${1:-127.0.0.1}"
export SERVER_PORT="${2:-8080}"
- printf 'started httpd:\n\nhost=%s\nport=%s\nhtdocs=%s\nscriptdir=%s\n\n' "$SERVER_NAME" "$SERVER_PORT" "$htdocsdir" "$scriptdir" >&2
+ printf '# started minihttpd:\n#\n# host = %s\n# port = %s\n# htdocs = %s\n# scriptdir = %s\n#\n' "$SERVER_NAME" "$SERVER_PORT" "$htdocsdir" "$scriptdir" >&2
SOCAT_SOCKADDR="${SERVER_NAME}" socat "TCP4-LISTEN:${SERVER_PORT},reuseaddr,fork,bind=${SERVER_NAME}" "SYSTEM:'$script httpd'"
elif test "$1" = "httpd"; then
IFS=" " read -r method request proto