summary refs log tree commit diff
path: root/os/etc/s6-rc/src/snooze-daily
diff options
context:
space:
mode:
Diffstat (limited to 'os/etc/s6-rc/src/snooze-daily')
-rw-r--r--os/etc/s6-rc/src/snooze-daily/producer-for1
-rw-r--r--os/etc/s6-rc/src/snooze-daily/run8
-rw-r--r--os/etc/s6-rc/src/snooze-daily/type1
3 files changed, 10 insertions, 0 deletions
diff --git a/os/etc/s6-rc/src/snooze-daily/producer-for b/os/etc/s6-rc/src/snooze-daily/producer-for
new file mode 100644
index 0000000..78f2503
--- /dev/null
+++ b/os/etc/s6-rc/src/snooze-daily/producer-for
@@ -0,0 +1 @@
+snooze-log
diff --git a/os/etc/s6-rc/src/snooze-daily/run b/os/etc/s6-rc/src/snooze-daily/run
new file mode 100644
index 0000000..f7e8300
--- /dev/null
+++ b/os/etc/s6-rc/src/snooze-daily/run
@@ -0,0 +1,8 @@
+#!/bin/execlineb -P
+
+fdmove -c 2 1
+
+foreground { mkdir -p /run/snooze }
+
+exec snooze -s 1d -t /run/snooze/daily -- execlineb -c \
+	"foreground { pipeline { test -d /etc/cron.daily } run-parts -v /etc/cron.daily } touch /run/snooze/daily"
diff --git a/os/etc/s6-rc/src/snooze-daily/type b/os/etc/s6-rc/src/snooze-daily/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/os/etc/s6-rc/src/snooze-daily/type
@@ -0,0 +1 @@
+longrun