Debian Bug report logs - #1012654
systemd timers?

version graph

Package: cron-apt; Maintainer for cron-apt is Ola Lundqvist <[email protected]>; Source for cron-apt is src:cron-apt (PTS, buildd, popcon).

Reported by: Marc Haber <[email protected]>

Date: Sat, 11 Jun 2022 06:51:02 UTC

Severity: wishlist

Found in version cron-apt/0.13.0.1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#1012654; Package cron-apt. (Sat, 11 Jun 2022 06:51:04 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Haber <[email protected]>:
New Bug report received and forwarded. Copy sent to Ola Lundqvist <[email protected]>. (Sat, 11 Jun 2022 06:51:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Marc Haber <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: systemd timers?
Date: Sat, 11 Jun 2022 08:47:31 +0200
[Message part 1 (text/plain, inline)]
Package: cron-apt
Version: 0.13.0.1
Severity: wishlist

Hi,

would you be open to a patch that adds the possibility to use systemd
timers? Quite some packages in Debian have adopted a way to run through
systemd timers and systemd units on systems that have systemd, falling
back to the "old" cron job configuration if there is no systemd. for
example, apt is doing it this way.

I am attaching the four preliminary systemd units I am using on a test
system without problems. You might notice that they're using systemd's
RandomizedDelaySec feature and call cron-apt -i instead. I find that
more elegant.

The systemd units would also make it easier to run with reduced
privileges, having parts of the file system read-only and have other
nice security features. My preliminary units don't do that yet, but I
would be willing to do that if there is a chance to get the work into
the package.

Let me know what you think.

Greetings
Marc


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.18.3-zgsrv20080 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages cron-apt depends on:
ii  apt  2.5.0

Versions of packages cron-apt recommends:
ii  cron [cron-daemon]                         3.0pl1-142
ii  exim4-daemon-light [mail-transport-agent]  4.95-6
ii  liblockfile1                               1.17-1+b1

cron-apt suggests no packages.

-- Configuration Files:
/etc/cron-apt/config changed [not included]
/etc/cron.d/cron-apt changed [not included]
/etc/logrotate.d/cron-apt changed [not included]

-- no debconf information
[cron-apt.service (text/plain, attachment)]
[cron-apt.timer (text/plain, attachment)]
[[email protected] (text/plain, attachment)]
[[email protected] (text/plain, attachment)]

Information forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#1012654; Package cron-apt. (Tue, 20 Sep 2022 18:18:03 GMT) (full text, mbox, link).


Acknowledgement sent to Ola Lundqvist <[email protected]>:
Extra info received and forwarded to list. Copy sent to Ola Lundqvist <[email protected]>. (Tue, 20 Sep 2022 18:18:03 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Ola Lundqvist <[email protected]>
To: Marc Haber <[email protected]>, [email protected]
Cc: Debian Bug Tracking System <[email protected]>
Subject: Re: Bug#1012654: systemd timers?
Date: Tue, 20 Sep 2022 20:16:01 +0200
[Message part 1 (text/plain, inline)]
Hi Marc

Sorry again for the late reply. Yes such a patch can be considered.
It must be clear on how the cron-fallback would work though.

// Ola

On Sat, 11 Jun 2022 at 08:51, Marc Haber <[email protected]>
wrote:

> Package: cron-apt
> Version: 0.13.0.1
> Severity: wishlist
>
> Hi,
>
> would you be open to a patch that adds the possibility to use systemd
> timers? Quite some packages in Debian have adopted a way to run through
> systemd timers and systemd units on systems that have systemd, falling
> back to the "old" cron job configuration if there is no systemd. for
> example, apt is doing it this way.
>
> I am attaching the four preliminary systemd units I am using on a test
> system without problems. You might notice that they're using systemd's
> RandomizedDelaySec feature and call cron-apt -i instead. I find that
> more elegant.
>
> The systemd units would also make it easier to run with reduced
> privileges, having parts of the file system read-only and have other
> nice security features. My preliminary units don't do that yet, but I
> would be willing to do that if there is a chance to get the work into
> the package.
>
> Let me know what you think.
>
> Greetings
> Marc
>
>
> -- System Information:
> Debian Release: bookworm/sid
>   APT prefers stable-security
>   APT policy: (500, 'stable-security'), (500, 'unstable'), (500,
> 'testing'), (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 5.18.3-zgsrv20080 (SMP w/4 CPU threads; PREEMPT)
> Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages cron-apt depends on:
> ii  apt  2.5.0
>
> Versions of packages cron-apt recommends:
> ii  cron [cron-daemon]                         3.0pl1-142
> ii  exim4-daemon-light [mail-transport-agent]  4.95-6
> ii  liblockfile1                               1.17-1+b1
>
> cron-apt suggests no packages.
>
> -- Configuration Files:
> /etc/cron-apt/config changed [not included]
> /etc/cron.d/cron-apt changed [not included]
> /etc/logrotate.d/cron-apt changed [not included]
>
> -- no debconf information
>


-- 
 --- Inguza Technology AB --- MSc in Information Technology ----
|  [email protected]                    [email protected]            |
|  http://inguza.com/                Mobile: +46 (0)70-332 1551 |
 ---------------------------------------------------------------
[Message part 2 (text/html, inline)]

Information forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#1012654; Package cron-apt. (Tue, 20 Sep 2022 18:18:04 GMT) (full text, mbox, link).


Acknowledgement sent to Ola Lundqvist <[email protected]>:
Extra info received and forwarded to list. Copy sent to Ola Lundqvist <[email protected]>. (Tue, 20 Sep 2022 18:18:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 16:20:10 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.