diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-29 15:00:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-01-29 15:00:01 +0000 |
commit | 3dcb6c6a73cd16acc7bcae9e54cda16fed89f35b (patch) | |
tree | e2b2b231622470ddc95a74f62b3cebcdcc492914 /layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup | |
parent | 5809b2dc1536794cff7df2ab4f79d2fe7b6720bc (diff) | |
download | lh-bootstrap-3dcb6c6a73cd16acc7bcae9e54cda16fed89f35b.tar.xz |
Reimport userfs, rwfs and s6-rc from master
Diffstat (limited to 'layout/rootfs/etc/s6-rc/source-base/fifodir-cleanup')
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 |