Bug#500431: popularity-contest: cronned in daily instead of (announced on) weekly
Package: popularity-contest Version: 1.45 Followup-For: Bug #500431 running from cron.daily on a specific day of the week makes it work poorly on systems not running all the time and relying on anacron to trigger weekly events; if i don't happen to boot my laptop on the appropriate day, it simply doesn't run. i think it would be be better to check the last time /var/log/popularity-contest was updated, and run popularity-contest only if it hadn't been updated in 7 days (or a configurable number, like /etc/cron.daily/apt). this should give a fairly random distribution (based on install dates), while still allowing for systems that are not running all the time to function. live well, vagrant -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (101, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages popularity-contest depends on: ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy ii dpkg 1.14.23Debian package management system Versions of packages popularity-contest recommends: ii cron 3.0pl1-105 management of regular background p ii exim4 4.69-9 metapackage to ease Exim MTA (v4) ii exim4-daemon-light [mail-tran 4.69-9 lightweight Exim MTA (v4) daemon Versions of packages popularity-contest suggests: ii anacron 2.3-13.1 cron-like program that doesn't go -- debconf information: popularity-contest/submiturls: * popularity-contest/participate: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#500431: popularity-contest: cronned in daily instead of (announced on) weekly
Package: popularity-contest Version: 1.45 Followup-For: Bug #500431 i added a workaround in /etc/popularity-contest.conf, by grabbing the check_stamp function from /etc/cron.daily/apt: check_stamp() { stamp=$1 interval=$2 if [ $interval -eq 0 ]; then return 1 fi if [ ! -f $stamp ]; then return 0 fi # compare midnight today to midnight the day the stamp was updated stamp=$(date --date=$(date -r $stamp --iso-8601) +%s) now=$(date --date=$(date --iso-8601) +%s) delta=$(($now-$stamp)) # intervall is in days, interval=$(($interval*60*60*24)) #echo stampfile: $1 #echo interval=$interval, now=$now, stamp=$stamp, delta=$delta if [ $delta -ge $interval ]; then return 0 fi return 1 } if check_stamp /var/log/popularity-contest 7 ; then DAY=$(date +%w) fi live well, vagrant -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#500431: popularity-contest: cronned in daily instead of (announced on) weekly
On Sun, Sep 28, 2008 at 09:53:34AM +0200, William Dode wrote: Package: popularity-contest Version: 1.45 Severity: important The cron used for popularity-contest is now cron.daily On the man page it says weekly : Normally, popularity-contest is run from a cron(8) job, /etc/cron.weekly/popularity-contest The manpage is unfortunately outdated, popularity-contest now run from /etc/cron.daily/popularity-contest but still only once a week. This is done to spread the load on the popcon server. It affect popbugs on debian-goodies package when popbugs is run before popularity-contest (the data is missing). Then popbugs says : Try running /etc/cron.weekly/popularity-contest by hand to collect some data. running /etc/cron.daily/popularity-contest will not work, because it will only run one day per weeks. I don't know if i should report the bug on debian-goodies package... Probably yes. Cheers, -- Bill. [EMAIL PROTECTED] Imagine a large red swirl here. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#500431: popularity-contest: cronned in daily instead of (announced on) weekly
Package: popularity-contest Version: 1.45 Severity: important The cron used for popularity-contest is now cron.daily On the man page it says weekly : Normally, popularity-contest is run from a cron(8) job, /etc/cron.weekly/popularity-contest It affect popbugs on debian-goodies package when popbugs is run before popularity-contest (the data is missing). Then popbugs says : Try running /etc/cron.weekly/popularity-contest by hand to collect some data. I don't know if i should report the bug on debian-goodies package... -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages popularity-contest depends on: ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy ii dpkg 1.14.22Debian package management system Versions of packages popularity-contest recommends: ii cron 3.0pl1-104 management of regular background p ii exim4 4.69-6 metapackage to ease Exim MTA (v4) ii exim4-daemon-light [mail-tran 4.69-6 lightweight Exim MTA (v4) daemon Versions of packages popularity-contest suggests: ii anacron 2.3-13.1 cron-like program that doesn't go -- debconf information: popularity-contest/submiturls: * popularity-contest/participate: true -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]