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