[Glibc-bsd-commits] r3840 - trunk/zfsutils/debian

Robert Millan rmh at alioth.debian.org
Wed Nov 9 20:08:53 UTC 2011


Author: rmh
Date: 2011-11-09 20:08:52 +0000 (Wed, 09 Nov 2011)
New Revision: 3840

Added:
   trunk/zfsutils/debian/zfsutils.cron.d
Modified:
   trunk/zfsutils/debian/changelog
   trunk/zfsutils/debian/rules
Log:
Add crontab file to run a monthly scrub of all pools.  Stolen from mdadm (thanks martin f. krafft).

Modified: trunk/zfsutils/debian/changelog
===================================================================
--- trunk/zfsutils/debian/changelog	2011-11-09 19:59:21 UTC (rev 3839)
+++ trunk/zfsutils/debian/changelog	2011-11-09 20:08:52 UTC (rev 3840)
@@ -2,9 +2,10 @@
 
   [ Robert Millan ]
   * Add Arno Töll to Uploaders and set Dm-Upload-Allowed accordingly.
+  * Add crontab file to run a monthly scrub of all pools.  Stolen from
+    mdadm (thanks martin f. krafft).
 
   [ Arni Töll ]
-
   * Drop all -dev packages. The libraries we are providing should never have
     been provided by the zfsutils source package as they randomly break upon
     upgrades as upstream does not provide any version information along the
@@ -13,7 +14,7 @@
   * Rename XC-Package-Type control field to Package-Type. That's supported as of
     dpkg-dev 1.15.7,
 
- -- Arno Töll <debian at toell.net>  Tue, 08 Nov 2011 22:05:52 +0100
+ -- Robert Millan <rmh at debian.org>  Wed, 09 Nov 2011 20:59:22 +0100
 
 zfsutils (8.3~svn226546-1) experimental; urgency=low
 

Modified: trunk/zfsutils/debian/rules
===================================================================
--- trunk/zfsutils/debian/rules	2011-11-09 19:59:21 UTC (rev 3839)
+++ trunk/zfsutils/debian/rules	2011-11-09 20:08:52 UTC (rev 3840)
@@ -177,7 +177,7 @@
 	dh_installdocs -a
 #	dh_installexamples
 	dh_installinit --no-restart-on-upgrade --name=zfs -- start 26 S . stop 50 0 6 .
-#	dh_installcron
+	dh_installcron
 #	dh_installinfo
 	dh_installman
 	dh_link -a

Added: trunk/zfsutils/debian/zfsutils.cron.d
===================================================================
--- trunk/zfsutils/debian/zfsutils.cron.d	                        (rev 0)
+++ trunk/zfsutils/debian/zfsutils.cron.d	2011-11-09 20:08:52 UTC (rev 3840)
@@ -0,0 +1,10 @@
+#
+# Copyright © martin f. krafft <madduck at madduck.net>
+# distributed under the terms of the Artistic Licence 2.0
+#
+
+# By default, run at 00:57 on 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, in this regard; therefore this
+# hack (see #380425).
+57 0 * * 0 root if [ $(date +\%d) -le 7 ]; then zpool list -H -o name | xargs zpool scrub; fi




More information about the Glibc-bsd-commits mailing list