From a7ead9fde1dd81d8fda7c828d2518c4326a8857f Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 22 Jan 2021 10:08:48 -0500 Subject: Use touch instead of shell truncation in service timefiles --- sv/snooze-daily/run | 2 +- sv/snooze-hourly/run | 2 +- sv/snooze-monthly/run | 2 +- sv/snooze-weekly/run | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sv/snooze-daily/run b/sv/snooze-daily/run index ee629a7..e563b20 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 \ - "test -d /etc/cron.daily && run-parts --lsbsysinit /etc/cron.daily; : > /var/cache/snooze/daily" + "test -d /etc/cron.daily && run-parts --lsbsysinit /etc/cron.daily; touch /var/cache/snooze/daily" diff --git a/sv/snooze-hourly/run b/sv/snooze-hourly/run index 053392e..64c0ccd 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 \ - "test -d /etc/cron.hourly && run-parts --lsbsysinit /etc/cron.hourly; : > /var/cache/snooze/hourly" + "test -d /etc/cron.hourly && run-parts --lsbsysinit /etc/cron.hourly; touch /var/cache/snooze/hourly" diff --git a/sv/snooze-monthly/run b/sv/snooze-monthly/run index b83c500..bc6bffd 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 \ - "test -d /etc/cron.monthly && run-parts --lsbsysinit /etc/cron.monthly; : > /var/cache/snooze/monthly" + "test -d /etc/cron.monthly && run-parts --lsbsysinit /etc/cron.monthly; touch /var/cache/snooze/monthly" diff --git a/sv/snooze-weekly/run b/sv/snooze-weekly/run index 0a6b849..ca12f86 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 \ - "test -d /etc/cron.weekly && run-parts --lsbsysinit /etc/cron.weekly; : > /var/cache/snooze/weekly" + "test -d /etc/cron.weekly && run-parts --lsbsysinit /etc/cron.weekly; touch /var/cache/snooze/weekly" -- cgit 1.4.1