about summary refs log tree commit diff
path: root/sv/snooze-monthly
diff options
context:
space:
mode:
authorCameron Nemo <camerontnorman@gmail.com>2018-11-23 19:26:21 -0800
committerLeah Neukirchen <leah@vuxu.org>2018-11-29 16:31:15 +0100
commit206eda3ca7b1e7a9cf51d2e630fcf62b45455997 (patch)
tree72d7944f70bf308d2a364b02b77a4581ecd8499c /sv/snooze-monthly
parentd44fd0169fcb9ba3debcaab38b526c7c7bf96d61 (diff)
downloadsnooze-206eda3ca7b1e7a9cf51d2e630fcf62b45455997.tar.gz
snooze-206eda3ca7b1e7a9cf51d2e630fcf62b45455997.tar.xz
snooze-206eda3ca7b1e7a9cf51d2e630fcf62b45455997.zip
sv: touch timefile in run scripts
Diffstat (limited to 'sv/snooze-monthly')
-rwxr-xr-xsv/snooze-monthly/finish2
-rwxr-xr-xsv/snooze-monthly/run3
2 files changed, 2 insertions, 3 deletions
diff --git a/sv/snooze-monthly/finish b/sv/snooze-monthly/finish
deleted file mode 100755
index 7188324..0000000
--- a/sv/snooze-monthly/finish
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-exec touch /var/cache/snooze/monthly
diff --git a/sv/snooze-monthly/run b/sv/snooze-monthly/run
index 2497fb3..f506a79 100755
--- a/sv/snooze-monthly/run
+++ b/sv/snooze-monthly/run
@@ -1,3 +1,4 @@
 #!/bin/sh
 mkdir -p /var/cache/snooze
-exec snooze -d 1 -s 28d -t /var/cache/snooze/monthly -- run-parts --lsbsysinit /etc/cron.monthly
+exec snooze -d 1 -s 28d -t /var/cache/snooze/monthly -- sh -c \
+	"run-parts --lsbsysinit /etc/cron.monthly; : > /var/cache/snooze/monthly"