Package: popularity-contest Version: 1.45 Severity: wishlist Tags: patch popularity-contest's cronjob (/etc/cron.daily/popularity-contest) should use ionice in order to be [even] less intrusive.
I've attached a simple patch. Franklin -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (50, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.25-2-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages popularity-contest depends on: ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy ii dpkg 1.14.18 package maintenance system for Deb Versions of packages popularity-contest recommends: ii cron 3.0pl1-104 management of regular background p ii exim4 4.69-5 meta-package to ease Exim MTA (v4) ii exim4-daemon-light [mail-tran 4.69-5+b1 lightweight Exim MTA (v4) daemon -- debconf information excluded
--- /etc/cron.daily/popularity-contest.orig 2008-05-28 09:03:29.000000000 +0200 +++ /etc/cron.daily/popularity-contest 2008-05-28 22:40:42.000000000 +0200 @@ -31,6 +31,11 @@ exit 0 fi +# See ionice(1) +if [ -x /usr/bin/ionice ]; then + IONICE="/usr/bin/ionice -c2" +fi + # keep old logs cd /var/log umask 022 @@ -39,7 +44,7 @@ run_popcon() { - su -s /bin/sh -c "/usr/sbin/popularity-contest" nobody + $IONICE su -s /bin/sh -c "/usr/sbin/popularity-contest" nobody } do_sendmail()