Comment 18 for bug 606491

Revision history for this message
Daniel Richard G. (skunk) wrote :

The following change should address this bug:

--- /etc/cron.d/anacron.orig 2010-06-20 04:11:29.000000000 -0400
+++ /etc/cron.d/anacron 2012-01-06 18:03:48.000000000 -0500
@@ -4,4 +4,4 @@
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

 #30 7 * * * root test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
-30 7 * * * root start -q anacron || :
+30 7 * * * root start --quiet anacron 2>/dev/null || :

The cron-job command is written to disregard failure of the start(8) command, but it was not absorbing the error message that would be produced in such an instance.

(I also changed -q to --quiet, as the former is not documented in the initctl(8) man page.)

Of course, this does nothing for the apt bug that appears to be associated with this one.