apt plugin from debians hobbit-plugins package
Rasmus Simon-Riegel a écrit :
/var/lib/apticron directory doesn't exists on my lenny hosts
Hi,i made a little change in /usr/lib/hobbit/client/ext/apt in @stamp_files add "/var/lib/apticron/last_run" and remove "/var/lib/apt/lists/lock". before: my @stamp_files = qw(/var/lib/apt/update_success /var/lib/apt/periodic/update-stamp /var/lib/apt/lists/lock); after: my @stamp_files = qw(/var/lib/apt/update_success /var/lib/apt/periodic/update-stamp /var/lib/apticron/last_run); works fine in lenny Rasmus Christoph Berg schrieb:Re: dOCtoR MADneSs 2009-04-30 <user-7298952df550@xymon.invalid>On my side I just changed my crontab : apt-get update && touch /var/lib/apt/lists/lock so if the update is succesfull, the mtime of /var/lib/apt/lists/lock is changed, and the apt plugin reports green.Ah, looks like using a lock file doesn't update the mtime. I didn't notice until now as I'm using the "all-included" hack suggested in apt.pl: 44 */4 * * * root ! apt-get -qq update 2>&1 | grep -q . && date -u > /var/lib/apt/update_success Unfortunately apt-get update even returns 0 in case of some errors (iirc unknown apt-keys etc.), so this command checks for an empty output of apt-get -qq update instead. (http://bugs.debian.org/526894) Christoph
/var/lib/apticron directory doesn't exists on my lenny hosts