summaryrefslogtreecommitdiff
path: root/s6/db/basic/servicedirs/s6rc-fdholder/run
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-01 22:01:26 +0000
committerdavidovski <david@davidovski.xyz>2022-03-01 22:01:26 +0000
commitefee4ebf43e376a7cd8b8abcef0c70aa90427bb4 (patch)
tree13956b6dbca8622b71edbdd3a1c2a949c5d1aac8 /s6/db/basic/servicedirs/s6rc-fdholder/run
initial commit
Diffstat (limited to 's6/db/basic/servicedirs/s6rc-fdholder/run')
-rwxr-xr-xs6/db/basic/servicedirs/s6rc-fdholder/run17
1 files changed, 17 insertions, 0 deletions
diff --git a/s6/db/basic/servicedirs/s6rc-fdholder/run b/s6/db/basic/servicedirs/s6rc-fdholder/run
new file mode 100755
index 0000000..0a400c7
--- /dev/null
+++ b/s6/db/basic/servicedirs/s6rc-fdholder/run
@@ -0,0 +1,17 @@
+#!/bin/execlineb -P
+pipeline -dw --
+{
+ if -n --
+ {
+ forstdin -x 1 -- i
+ exit 1
+ }
+ if -nt --
+ {
+ redirfd -r 0 ./data/autofilled
+ s6-ipcclient -l0 -- s
+ /lib/s6-rc/s6-rc-fdholder-filler -1 --
+ }
+ s6-svc -t .
+}
+s6-fdholder-daemon -1 -i data/rules -- s