<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 6:12 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>
> > This won’t delete the logs on shutdown or something, because<br>
> > it’s called tmpfiles?<br>
> <br>
> No, because we don't provide the last argument (the age one):<br>
<br>
thanks!<br></blockquote><div><br></div><div>Glad to help.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> In fact, /var/log is already tmpfile'd with a similar entry:<br>
<br>
OK. I don’t run systemd, so I didn’t know and needed this info,<br>
as I had just fixed this for sysvinit-based systems in tomcat9,<br>
and found the LogsDirectory stuff in the systemd service file,<br>
which I’m currently transferring into an init script.<br></blockquote><div><br></div><div>It might be a good idea to store that script somewhere else (possibly /usr/lib/tomcat9 ?) and call it from the init script. As the script gets more complex, the chance of a conffile conflict increases, as the probability of needed modification either by the admin or the maintainer increases.</div><div><br></div><div> </div></div>-- <br><div dir="ltr" class="gmail_signature"><br>Saludos,<br>Felipe Sateler</div></div>