diff -u findutils-4.2.31/debian/find-cron.daily findutils-4.2.31/debian/find-cron.daily --- findutils-4.2.31/debian/find-cron.daily +++ findutils-4.2.31/debian/find-cron.daily @@ -12,7 +12,7 @@ fi if getent passwd $LOCALUSER > /dev/null ; then - cd / && nice -n ${NICE:-10} updatedb 2>/dev/null + cd / && nice -n ${NICE:-10} ionice -c ${IONICE_CLASS:-2} -p {$IONICE_PRIORITY:-7} updatedb 2>/dev/null else echo "User $LOCALUSER does not exist." exit 1 diff -u findutils-4.2.31/debian/changelog findutils-4.2.31/debian/changelog --- findutils-4.2.31/debian/changelog +++ findutils-4.2.31/debian/changelog @@ -1,3 +1,13 @@ +findutils (4.2.31-1ubuntu1) gutsy; urgency=low + + * Make use of ionice in cron.daily, if available (LP: #134692) + * debian/updatedb.conf: added IONICE_CLASS/IONICE_PRIORITY, + defaulting to IONICE_CLASS=2, IONICE_PRIORITY=7 (best effort) + * debian/find-crond.daily: use ionice + * debian/control: DebianMaintainerField + + -- dAniel hAhler Tue, 02 Oct 2007 01:52:46 +0200 + findutils (4.2.31-1) unstable; urgency=medium * Undo workaround for savannah #19550, since it is a glibc bug. diff -u findutils-4.2.31/debian/updatedb.conf findutils-4.2.31/debian/updatedb.conf --- findutils-4.2.31/debian/updatedb.conf +++ findutils-4.2.31/debian/updatedb.conf @@ -21,2 +21,9 @@ export NICE +# cron.daily: I/O priority +# 1 for real time, 2 for best-effort (3 for idle is only allowed for root!) +IONICE_CLASS=2 +export IONICE_CLASS +# 0-7 (for IONICE_CLASS 1 and 2 only), 0=highest, 7=lowest +IONICE_PRIORITY=7 +export IONICE_PRIORITY diff -u findutils-4.2.31/debian/control findutils-4.2.31/debian/control --- findutils-4.2.31/debian/control +++ findutils-4.2.31/debian/control @@ -1,7 +1,8 @@ Source: findutils Section: utils Priority: required -Maintainer: Andreas Metzler +Maintainer: Ubuntu Core Developers +XSBC-Original-Maintainer: Andreas Metzler Uploaders: Chuan-kai Lin Build-Depends: texinfo, debhelper (>> 4.0.0), dpatch, autotools-dev, dejagnu Standards-Version: 3.7.2