about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsv/snooze-daily/run2
-rwxr-xr-xsv/snooze-hourly/run2
-rwxr-xr-xsv/snooze-monthly/run2
-rwxr-xr-xsv/snooze-weekly/run2
4 files changed, 4 insertions, 4 deletions
diff --git a/sv/snooze-daily/run b/sv/snooze-daily/run
index 45b4d07..ee629a7 100755
--- a/sv/snooze-daily/run
+++ b/sv/snooze-daily/run
@@ -1,4 +1,4 @@
 #!/bin/sh
 mkdir -p /var/cache/snooze
 exec snooze -s 1d -t /var/cache/snooze/daily -- sh -c \
-	"run-parts --lsbsysinit /etc/cron.daily; : > /var/cache/snooze/daily"
+	"test -d /etc/cron.daily && run-parts --lsbsysinit /etc/cron.daily; : > /var/cache/snooze/daily"
diff --git a/sv/snooze-hourly/run b/sv/snooze-hourly/run
index d9a3f0b..053392e 100755
--- a/sv/snooze-hourly/run
+++ b/sv/snooze-hourly/run
@@ -1,4 +1,4 @@
 #!/bin/sh
 mkdir -p /var/cache/snooze
 exec snooze -H \* -s 1h -t /var/cache/snooze/hourly -- sh -c \
-	"run-parts --lsbsysinit /etc/cron.hourly; : > /var/cache/snooze/hourly"
+	"test -d /etc/cron.hourly && run-parts --lsbsysinit /etc/cron.hourly; : > /var/cache/snooze/hourly"
diff --git a/sv/snooze-monthly/run b/sv/snooze-monthly/run
index f506a79..b83c500 100755
--- a/sv/snooze-monthly/run
+++ b/sv/snooze-monthly/run
@@ -1,4 +1,4 @@
 #!/bin/sh
 mkdir -p /var/cache/snooze
 exec snooze -d 1 -s 28d -t /var/cache/snooze/monthly -- sh -c \
-	"run-parts --lsbsysinit /etc/cron.monthly; : > /var/cache/snooze/monthly"
+	"test -d /etc/cron.monthly && run-parts --lsbsysinit /etc/cron.monthly; : > /var/cache/snooze/monthly"
diff --git a/sv/snooze-weekly/run b/sv/snooze-weekly/run
index a3228c7..0a6b849 100755
--- a/sv/snooze-weekly/run
+++ b/sv/snooze-weekly/run
@@ -1,4 +1,4 @@
 #!/bin/sh
 mkdir -p /var/cache/snooze
 exec snooze -w 0 -s 7d -t /var/cache/snooze/weekly -- sh -c \
-	"run-parts --lsbsysinit /etc/cron.weekly; : > /var/cache/snooze/weekly"
+	"test -d /etc/cron.weekly && run-parts --lsbsysinit /etc/cron.weekly; : > /var/cache/snooze/weekly"