From 0691bcbd11897694a604f99fa58af6b4286c7195 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 29 Aug 2023 16:30:15 +0000 Subject: More examples, some fixes, some more doc Signed-off-by: Laurent Bercot --- examples/s6/httpd-4/log/notification-fd | 1 + examples/s6/httpd-4/log/run | 5 +++++ examples/s6/httpd-4/notification-fd | 1 + examples/s6/httpd-4/run | 10 ++++++++++ 4 files changed, 17 insertions(+) create mode 100644 examples/s6/httpd-4/log/notification-fd create mode 100755 examples/s6/httpd-4/log/run create mode 100644 examples/s6/httpd-4/notification-fd create mode 100755 examples/s6/httpd-4/run (limited to 'examples/s6/httpd-4') diff --git a/examples/s6/httpd-4/log/notification-fd b/examples/s6/httpd-4/log/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/examples/s6/httpd-4/log/notification-fd @@ -0,0 +1 @@ +3 diff --git a/examples/s6/httpd-4/log/run b/examples/s6/httpd-4/log/run new file mode 100755 index 0000000..51897c7 --- /dev/null +++ b/examples/s6/httpd-4/log/run @@ -0,0 +1,5 @@ +#!/bin/execlineb -S1 + +s6-setuidgid wwwlog +exec -c +s6-log -d3 t s1000000 n20 /var/log/httpd-4 diff --git a/examples/s6/httpd-4/notification-fd b/examples/s6/httpd-4/notification-fd new file mode 100644 index 0000000..00750ed --- /dev/null +++ b/examples/s6/httpd-4/notification-fd @@ -0,0 +1 @@ +3 diff --git a/examples/s6/httpd-4/run b/examples/s6/httpd-4/run new file mode 100755 index 0000000..190392f --- /dev/null +++ b/examples/s6/httpd-4/run @@ -0,0 +1,10 @@ +#!/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-tcpserver4 -v2 -1 -U -c 512 -- $ip 80 +s6-tcpserver-access -lexample.com -- +tipideed -v2 -- -- cgit v1.2.3