aboutsummaryrefslogtreecommitdiffstats
path: root/examples/source/httpd-4/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/source/httpd-4/run')
-rwxr-xr-xexamples/source/httpd-4/run12
1 files changed, 7 insertions, 5 deletions
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