diff options
author | Andrew J. Hesford <ajh@sideband.org> | 2021-01-22 10:08:48 -0500 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2021-01-22 16:21:42 +0100 |
commit | a7ead9fde1dd81d8fda7c828d2518c4326a8857f (patch) | |
tree | 1307c9e1b329eddb0823434ab587730bd8850f9e | |
parent | 858876464609a0f744a01e89f21123ef16ae42af (diff) | |
download | snooze-a7ead9fde1dd81d8fda7c828d2518c4326a8857f.tar.gz snooze-a7ead9fde1dd81d8fda7c828d2518c4326a8857f.tar.xz snooze-a7ead9fde1dd81d8fda7c828d2518c4326a8857f.zip |
Use touch instead of shell truncation in service timefiles
-rwxr-xr-x | sv/snooze-daily/run | 2 | ||||
-rwxr-xr-x | sv/snooze-hourly/run | 2 | ||||
-rwxr-xr-x | sv/snooze-monthly/run | 2 | ||||
-rwxr-xr-x | 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" |