aboutsummaryrefslogtreecommitdiff
path: root/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-01-29 15:00:01 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-01-29 15:00:01 +0000
commit3dcb6c6a73cd16acc7bcae9e54cda16fed89f35b (patch)
treee2b2b231622470ddc95a74f62b3cebcdcc492914 /layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup
parent5809b2dc1536794cff7df2ab4f79d2fe7b6720bc (diff)
downloadlh-bootstrap-3dcb6c6a73cd16acc7bcae9e54cda16fed89f35b.tar.xz
Reimport userfs, rwfs and s6-rc from master
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup')
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies1
-rwxr-xr-xlayout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run10
-rw-r--r--layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type1
3 files changed, 12 insertions, 0 deletions
diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies
new file mode 100644
index 0000000..4daddb7
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/dependencies
@@ -0,0 +1 @@
+00
diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run
new file mode 100755
index 0000000..a2c371b
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/run
@@ -0,0 +1,10 @@
+#!/command/execlineb -P
+fdmove -c 2 1
+if
+{
+ forbacktickx -p -0 i { s6-ls -0 /run/service }
+ importas -u i
+ s6-cleanfifodir /run/service/${i}/event
+}
+s6-setuidgid nobody
+s6-sleep 86400
diff --git a/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup/type
@@ -0,0 +1 @@
+longrun