[Popcon-developers] Bug#799088: popularity-contest: please add PERSISTENT=true to the new crontab

Alexandre Detiste alexandre.detiste at gmail.com
Tue Sep 15 18:52:34 UTC 2015


Package: popularity-contest
Version: =1.64
Severity: wishlist
Tags: patch

Hi,

Could you please add a "PERSISTENT=true" environment
variable to the new generated crontabs ?

When the cron-daemon is provided by 'systemd-cron' alternative
implementation, this got translated to "Persistent=true"
in the generated systemd timer.

That gives this crontab anacron-like powers:
if the timer elaspsed while the system was down,
the job is executed after next boot.

By the way, the "Suggests: anacron" is not applicable anymore,
as anacron doesn't process the jobs in /etc/cron.d .

Vixie's cron will ignore this environment variable.

Greets,

--- popularity-contest  2015-09-15 20:43:23.714645204 +0200
+++ popularity-contest  2015-09-15 20:44:29.364004449 +0200
@@ -1,3 +1,4 @@
 SHELL=/bin/sh
 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+PERSISTENT=true
 56 18 * * *   root    test -x /etc/cron.daily/popularity-contest &&
/etc/cron.daily/popularity-contest --crond



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.1.0-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



More information about the Popcon-developers mailing list