aboutsummaryrefslogtreecommitdiffstats
path: root/layout/rootfs/etc/s6-rc/source-base/dnscache/run
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-22 21:56:04 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-22 21:56:04 +0000
commit82d0f92ab8b84466ae20ab919c1f9c3577b5cecb (patch)
tree776015ae6c6a386125b2d39e13b62f91b99548f8 /layout/rootfs/etc/s6-rc/source-base/dnscache/run
downloadlh-bootstrap-82d0f92ab8b84466ae20ab919c1f9c3577b5cecb.tar.gz
Initial commit
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base/dnscache/run')
-rwxr-xr-xlayout/rootfs/etc/s6-rc/source-base/dnscache/run13
1 files changed, 13 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/dnscache/run b/layout/rootfs/etc/s6-rc/source-base/dnscache/run
new file mode 100755
index 0000000..736b5e6
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/dnscache/run
@@ -0,0 +1,13 @@
+#!/command/execlineb -P
+fdmove -c 2 1
+s6-envuidgid dnscache
+s6-envdir env
+s6-softlimit -m 4000000
+pipeline -d
+{
+ redirfd -r 0 /dev/urandom
+ s6-head -c 128
+}
+unexport !
+fdmove 1 3
+dnscache