summaryrefslogtreecommitdiff
path: root/examples/s6/httpd-6/run
blob: 6be027bd96c3840761f9822de11500cc765ed91d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/execlineb -P

fdmove -c 2 1
backtick -E ip { pipeline { s6-dnsip6 example.com } head -n 1 }
s6-envuidgid www
cd /home/www
fdmove 1 3
s6-tcpserver -v2 -1 -U -c 512 -- $ip 80
tipideed