<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Rasmus Simon-Riegel a écrit :
<blockquote cite="mid:49FFE661.5090200@devk.de" type="cite">
  <pre wrap="">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:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Re: dOCtoR MADneSs 2009-04-30 <a class="moz-txt-link-rfc2396E" href="mailto:49F9C9E9.1060406@makelofine.org"><49F9C9E9.1060406@makelofine.org></a>
    </pre>
    <blockquote type="cite">
      <pre wrap="">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.
      </pre>
    </blockquote>
    <pre wrap="">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.

(<a class="moz-txt-link-freetext" href="http://bugs.debian.org/526894">http://bugs.debian.org/526894</a>)

Christoph
    </pre>
  </blockquote>
  <pre wrap=""><!---->
To unsubscribe from the hobbit list, send an e-mail to
<a class="moz-txt-link-abbreviated" href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a>


  </pre>
</blockquote>
Hi,<br>
<br>
/var/lib/apticron directory doesn't exists on my lenny hosts<br>
</body>
</html>