r36 - mdadm/trunk/debian

madduck at users.alioth.debian.org madduck at users.alioth.debian.org
Sun Jul 30 10:57:41 UTC 2006


Author: madduck
Date: 2006-07-30 10:57:40 +0000 (Sun, 30 Jul 2006)
New Revision: 36

Modified:
   mdadm/trunk/debian/changelog
   mdadm/trunk/debian/mdadm.cron.d
Log:
* Fixing cron registration for checkarray. crontab(5) is really stupid and
  makes me think that they simply documented a bug instead of fixing it, so
  now I have to hack around it. See the cron.d file (closes: #380425).

Modified: mdadm/trunk/debian/changelog
===================================================================
--- mdadm/trunk/debian/changelog	2006-07-30 10:09:09 UTC (rev 35)
+++ mdadm/trunk/debian/changelog	2006-07-30 10:57:40 UTC (rev 36)
@@ -7,9 +7,9 @@
   * checkarray: check for presence of active RAID arrays and give an
     appropriate error if there are none present (closes: #379019).
   * checkarray: skip sync for RAID0 devices (closes: #379352, #380424).
-  * Fixing cron registration for checkarray to really only run once a month.
-    crontab(5) is really stupid and makes me think that they simply documented
-    a bug instead of fixing it (closes: #380425).
+  * Fixing cron registration for checkarray. crontab(5) is really stupid and
+    makes me think that they simply documented a bug instead of fixing it, so
+    now I have to hack around it. See the cron.d file (closes: #380425).
   * Removed the code writing auto-detected devices to /var, which was silly
     since /var isn't necessarily mounted yet by the time mdadm-raid is called.
     Thanks to Maurizio Avogadro for pointing this out.

Modified: mdadm/trunk/debian/mdadm.cron.d
===================================================================
--- mdadm/trunk/debian/mdadm.cron.d	2006-07-30 10:09:09 UTC (rev 35)
+++ mdadm/trunk/debian/mdadm.cron.d	2006-07-30 10:57:40 UTC (rev 36)
@@ -5,7 +5,8 @@
 # distributed under the terms of the Artistic Licence.
 #
 
-# by default, run at 01:06 on the 5th of every month. I would like to be able
-# to limit this down to weekends, but crontab(5) is not able to do so
-# (see #380425)
-6 1 5 * * root [ -x /usr/share/mdadm/checkarray ] && /usr/share/mdadm/checkarray --cron --all --quiet
+# By default, run at 01:06 on the every Sunday, but do nothing unless the day
+# of the month is less than or equal to 7. Thus, only run on the first Sunday
+# of each month. crontab(5) sucks, unfortunately, so therefore this hack
+# (see #380425).
+6 1 * * 0 root [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ] && /usr/share/mdadm/checkarray --cron --all --quiet




More information about the pkg-mdadm-commits mailing list