Bug#769895: init-system-helpers: deb-systemd-helper should remove timestamps on timer unit purge

Michael Biebl biebl at debian.org
Sat Jul 4 19:06:49 BST 2020


Hi Felipe

On Tue, 20 Dec 2016 09:46:38 -0300 Felipe Sateler <fsateler at debian.org>
wrote:
> Control: forwarded -1 https://github.com/systemd/systemd/issues/4930
> 
> On Mon, 17 Nov 2014 12:46:38 +0100 Alexandre Detiste
> <alexandre.detiste at gmail.com> wrote:
> > Package: init-system-helpers
> > Version: 1.21
> > Severity: minor
> >
> > Dear Maintainer,
> >
> > When a timer unit with flag "Persistant=true" is purged,
> > a loose time stamp (0 byte file) is left loose
> > in /var/lib/systemd/timers/stamp-<unit-name>.timer
> >
> > This file could be safely removed by deb-systemd-helper during a purge.
> 
> I'd really rather not rely on implementation details. I have forwarded
> the bug to systemd upstream so they provide an interface to clear the
> stamp files. When that is done, we can add that invocation in
> deb-systemd-helper.

We now do have a "systemctl clean" interface.
Should we simply run that unconditionally on deb-systemd-helper purge?
For all unit types or only timers?

I also note, that this apparently doesn't work in chroots:
# systemctl clean apt-daily.timer
Running in chroot, ignoring request: clean

Not sure if this is something we should be concerned about.

Regards,
Michael



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200704/0b17e18b/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list