<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 5:17 PM Thorsten Glaser <<a href="mailto:t.glaser@tarent.de">t.glaser@tarent.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Felipe,<br>
<br>
> You can ship a tmpfiles snippet like:<br>
> <br>
> d /var/log/tomcat9 2750 root adm -<br>
<br>
This won’t delete the logs on shutdown or something, because<br>
it’s called tmpfiles?<br></blockquote></div><div><br></div><div>No, because we don't provide the last argument (the age one):</div><div><br></div><div><div>> Create a directory. The mode and ownership will be adjusted</div><div>> if specified. Contents of this directory are subject to time based</div><div>> cleanup if the age argument is specified.</div></div><div><br></div><div><a href="https://manpages.debian.org/unstable/systemd/tmpfiles.d.5.en.html#Type">https://manpages.debian.org/unstable/systemd/tmpfiles.d.5.en.html#Type</a><br></div><div><br></div><div>In fact, /var/log is already tmpfile'd with a similar entry:</div><div><br></div><div>d /var/log 0755 - - -<br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><br>Saludos,<br>Felipe Sateler</div></div></div></div>