LogsDirectory vs. group adm

Felipe Sateler fsateler at debian.org
Fri Mar 29 20:43:29 GMT 2019


On Fri, Mar 29, 2019 at 5:17 PM Thorsten Glaser <t.glaser at tarent.de> wrote:

> Hi Felipe,
>
> > You can ship a tmpfiles snippet like:
> >
> > d /var/log/tomcat9 2750 root adm -
>
> This won’t delete the logs on shutdown or something, because
> it’s called tmpfiles?
>

No, because we don't provide the last argument (the age one):

> Create a directory. The mode and ownership will be adjusted
> if specified. Contents of this directory are subject to time based
> cleanup if the age argument is specified.

https://manpages.debian.org/unstable/systemd/tmpfiles.d.5.en.html#Type

In fact, /var/log is already tmpfile'd with a similar entry:

d /var/log 0755 - - -

-- 

Saludos,
Felipe Sateler
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20190329/85f9e593/attachment.html>


More information about the Pkg-systemd-maintainers mailing list