summaryrefslogtreecommitdiff
path: root/examples/ROOT/img/services-network/fifodir-cleanup/run
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ROOT/img/services-network/fifodir-cleanup/run')
-rwxr-xr-xexamples/ROOT/img/services-network/fifodir-cleanup/run14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/ROOT/img/services-network/fifodir-cleanup/run b/examples/ROOT/img/services-network/fifodir-cleanup/run
new file mode 100755
index 0000000..9928d84
--- /dev/null
+++ b/examples/ROOT/img/services-network/fifodir-cleanup/run
@@ -0,0 +1,14 @@
+#!/command/execlineb -P
+fdmove -c 2 1
+if
+{
+ forbacktickx -p -0 i { s6-ls -0 /service }
+ import i unexport i
+ foreground
+ {
+ if { s6-test -d /service/${i}/log }
+ s6-cleanfifodir /service/${i}/log/event
+ }
+ s6-cleanfifodir /service/${i}/event
+}
+s6-sleep 86400