]> git.netwichtig.de Git - user/henk/code/snooze.git/blobdiff - sv/snooze-daily/run
sv: only invoke run-parts if the directory exists
[user/henk/code/snooze.git] / sv / snooze-daily / run
index 45b4d07f519cc4137b6553b2fa044da271f07b45..ee629a74a11d14b32825957781b721528f7c3645 100755 (executable)
@@ -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"