Package: dpkg
Version: 1.20.7.1
Severity: wishlist

Hi there,

With systemd being the default in Debian systems, it's possible nowadays
to uninstall cron, without losing much in terms of functionality. Many
packages nowadays ship both a cronjob and a systemd timer unit including
packages in the standard install (e.g. apt, e2fsprogs, man-db).

dpkg is not one of them, as far as I can tell :) It's also relatively
easy for users to miss that -- uninstall or not install cron, and find
themselves without a backup weeks or months later, when they really are
in need of them.

The common convention is for cronjobs to check for the existence of
/run/systemd/system and then exit when a timer + unit is also shipped.
So adding said support would not be terribly hard unless I'm missing
something.

However, the /etc/cron.daily/dpkg script has effectively the dpkg backup
implementation, code that would be need to be moved in a common
location. Where in the filesystem that should land and under which name
is likely better decided by the maintainer rather than a drive-by
contributor like myself :)

Best,
Faidon

Reply via email to