aboutsummaryrefslogtreecommitdiffstats
path: root/examples/source/httpd-4
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-05-05 06:29:50 +0000
committerLaurent Bercot <ska@appnovation.com>2025-05-05 06:29:50 +0000
commite18d6958b2470a2e68cc637945ccf3a1dae5c0a2 (patch)
tree90e065e7b7422c2f2dbd5d924dfcd14a2866de39 /examples/source/httpd-4
parent09ccd3128f2296d3a0cd1602e64caf06cf22c64f (diff)
downloads6-rc-e18d6958b2470a2e68cc637945ccf3a1dae5c0a2.tar.gz
Update examples
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'examples/source/httpd-4')
-rw-r--r--examples/source/httpd-4/producer-for2
-rwxr-xr-xexamples/source/httpd-4/run12
2 files changed, 8 insertions, 6 deletions
diff --git a/examples/source/httpd-4/producer-for b/examples/source/httpd-4/producer-for
index 9835bc1..7f6f6cd 100644
--- a/examples/source/httpd-4/producer-for
+++ b/examples/source/httpd-4/producer-for
@@ -1 +1 @@
-httpd-4-log
+httpd-log
diff --git a/examples/source/httpd-4/run b/examples/source/httpd-4/run
index 34b2aa6..75e7635 100755
--- a/examples/source/httpd-4/run
+++ b/examples/source/httpd-4/run
@@ -1,8 +1,10 @@
#!/command/execlineb -P
fdmove -c 2 1
-s6-envuidgid www
-cd /home/www
-importas -ui ETH0_IP4 ETH0_IP4
+s6-envdir /etc/env-network
+cd /home/public
+importas -uSi ETH0_IP4
+emptyenv -p
+s6-envuidgid public
fdmove 1 3
-s6-tcpserver4 -v 2 -U -c 512 -1 -- ${ETH0_IP4} 80
-httpd -iv
+s6-tcpserver -v -U -c 512 -1 -- ${ETH0_IP4} 80
+tipideed