From f5c219983c0f60a07f1bd52b6f6071e86f35455e Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 Sep 2023 11:56:34 +0200 Subject: add os config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- os/etc/s6-rc/src/snooze-hourly/producer-for | 1 + os/etc/s6-rc/src/snooze-hourly/run | 8 ++++++++ os/etc/s6-rc/src/snooze-hourly/type | 1 + 3 files changed, 10 insertions(+) create mode 100644 os/etc/s6-rc/src/snooze-hourly/producer-for create mode 100644 os/etc/s6-rc/src/snooze-hourly/run create mode 100644 os/etc/s6-rc/src/snooze-hourly/type (limited to 'os/etc/s6-rc/src/snooze-hourly') diff --git a/os/etc/s6-rc/src/snooze-hourly/producer-for b/os/etc/s6-rc/src/snooze-hourly/producer-for new file mode 100644 index 0000000..78f2503 --- /dev/null +++ b/os/etc/s6-rc/src/snooze-hourly/producer-for @@ -0,0 +1 @@ +snooze-log 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" diff --git a/os/etc/s6-rc/src/snooze-hourly/type b/os/etc/s6-rc/src/snooze-hourly/type new file mode 100644 index 0000000..5883cff --- /dev/null +++ b/os/etc/s6-rc/src/snooze-hourly/type @@ -0,0 +1 @@ +longrun -- cgit 1.4.1