martin f. krafft: Do not exit checkarray cronjob non-zero when the tests whether to run fail

Martin F. Krafft madduck at alioth.debian.org
Mon May 24 09:19:57 UTC 2010


Module: mdadm
Branch: master
Commit: 23c020cae7a5e894b02d440588f0c5a0e4287dae
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=23c020cae7a5e894b02d440588f0c5a0e4287dae

Author: martin f. krafft <madduck at debian.org>
Date:   Mon May 24 11:19:03 2010 +0200

Do not exit checkarray cronjob non-zero when the tests whether to run fail

This is related to a recent change in behaviour in cron 3.0pl1-110 (see
e.g. #581612). Thanks to everyone for their suggestions!

Debian-bug: #580825
Signed-off-by: martin f. krafft <madduck at debian.org>

---

 debian/changelog    |    4 ++++
 debian/mdadm.cron.d |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b4810e9..801a103 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ mdadm (3.1.1-2) UNRELEASED; urgency=low
     are now arbitrary, no longer multiples of 20 (closes: #570315).
   * checkarray: do not exit non-zero when there are no arrays found (see
     #582360).
+  * Do not exit checkarray cronjob non-zero when the tests whether to run
+    fail (closes: #580825). This is related to a recent change in behaviour in
+    cron 3.0pl1-110 (see e.g. #581612). Thanks to everyone for their
+    suggestions!
 
  -- martin f. krafft <madduck at debian.org>  Wed, 27 Jan 2010 14:42:16 +1300
 
diff --git a/debian/mdadm.cron.d b/debian/mdadm.cron.d
index fd6a09c..7a167cf 100644
--- a/debian/mdadm.cron.d
+++ b/debian/mdadm.cron.d
@@ -9,4 +9,4 @@
 # the month is less than or equal to 7. Thus, only run on the first Sunday of
 # each month. crontab(5) sucks, unfortunately, in this regard; therefore this
 # hack (see #380425).
-57 0 * * 0 root [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ] && /usr/share/mdadm/checkarray --cron --all --quiet
+57 0 * * 0 root if [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ]; then /usr/share/mdadm/checkarray --cron --all --quiet; fi




More information about the pkg-mdadm-commits mailing list