summaryrefslogtreecommitdiff
path: root/sv/snooze-daily
diff options
context:
space:
mode:
authorCameron Nemo <camerontnorman@gmail.com>2018-09-01 17:52:19 -0700
committerLeah Neukirchen <leah@vuxu.org>2018-09-03 14:23:20 +0200
commitd44fd0169fcb9ba3debcaab38b526c7c7bf96d61 (patch)
tree31b083fe6ee54f4b3d5058270b0b941e7492ef2d /sv/snooze-daily
parent44fa475c6d9dcb4b2f2ba89f39f5e7227fb9eec7 (diff)
sv: include runit service files to run cron drop-in scripts
Closes: #6 [via git-merge-pr]
Diffstat (limited to 'sv/snooze-daily')
-rwxr-xr-xsv/snooze-daily/finish2
-rwxr-xr-xsv/snooze-daily/run3
2 files changed, 5 insertions, 0 deletions
diff --git a/sv/snooze-daily/finish b/sv/snooze-daily/finish
new file mode 100755
index 0000000..a080f71
--- /dev/null
+++ b/sv/snooze-daily/finish
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec touch /var/cache/snooze/daily
diff --git a/sv/snooze-daily/run b/sv/snooze-daily/run
new file mode 100755
index 0000000..1e6ce55
--- /dev/null
+++ b/sv/snooze-daily/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+mkdir -p /var/cache/snooze
+exec snooze -s 1d -t /var/cache/snooze/daily -- run-parts --lsbsysinit /etc/cron.daily