On 8/21/18 23:50, Colin Watson wrote:
> On Tue, Aug 21, 2018 at 11:38:35PM +0200, Michael Biebl wrote:
>> On Fri, 17 Mar 2017 12:59:33 +0100 cgzones <cgzo...@googlemail.com> wrote:
>>> Package: man-db
>>> Version: 2.7.6.1-2
>>>
>>> Dear Maintainer,
>>> can you please add a systemd timer for the daily man-db cache regeneration.
>>
>> Did you have time to look at this patch?
> 
> Can somebody explain what it achieves, other than churn?  cron still
> works just fine on systemd-based systems ...

cron still works fine, but we are at a point (in Debian)  where I see
enough packages shipping a systemd.timer alongside their cron job, that
installing cron by default could no longer be necessary. man-db is one
of the remaining, by default-installed, packages, which doesn't yet.

Aside from having one less package to install and daemon to run, a
systemd.timer gives you much more possibilities and fine-grained control
about the execution of the task (take a look at the recently added
logrotate.timer/.service)

Persistent systemd timers also handle cases where a system is not 24/7
online much nicer (anacron imho is just a clutch in comparison)


One aspect of shipping a native systemd .service + .timer I value
particulary, is that with a persistent journal, I can very easily check
when a particular timer and its associated service were executed.

e.g. journalctl -u apt-daily.service
- Logs begin at Tue 2017-09-12 10:33:20 CEST, end at Wed 2018-08-22
00:36:53 CEST. --
Jul 06 08:46:09 pluto systemd[1]: Starting Daily apt download activities...
Jul 06 08:46:11 pluto systemd[1]: Started Daily apt download activities.
-- Reboot --
Jul 07 00:31:29 pluto systemd[1]: Starting Daily apt download activities...
Jul 07 00:31:29 pluto systemd[1]: Started Daily apt download activities.
Jul 07 11:25:19 pluto systemd[1]: Starting Daily apt download activities...
Jul 07 11:25:20 pluto nm-online[25227]:
../../../../gio/gdbusobjectmanagerclient.c:1589: Processing
InterfaceRemoved signal for path /org/freedesktop/Netw
Jul 07 11:25:20 pluto nm-online[25227]:
../../../../gio/gdbusobjectmanagerclient.c:1589: Processing
InterfaceRemoved signal for path /org/freedesktop/Netw
Jul 07 11:25:21 pluto systemd[1]: Started Daily apt download activities.
-- Reboot --
Jul 08 02:58:30 pluto systemd[1]: Starting Daily apt download activities...
Jul 08 02:58:33 pluto systemd[1]: Started Daily apt download activities.
Jul 08 10:06:55 pluto systemd[1]: Starting Daily apt download activities...
Jul 08 10:06:56 pluto systemd[1]: Started Daily apt download activities.
...

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to