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

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