<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">
      <div class="moz-cite-prefix">On my Rocky Linux 9, I have found
        this file /etc/logrotate.d/nginx <br>
      </div>
      <div class="moz-cite-prefix">/var/log/nginx/*log {<br>
            daily<br>
            rotate 10<br>
            missingok<br>
            notifempty<br>
            compress<br>
            delaycompress<br>
            sharedscripts<br>
            postrotate<br>
                /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null`
        2>/dev/null || true<br>
            endscript<br>
        }<br>
      </div>
      <div class="moz-cite-prefix"><br>
      </div>
      <div class="moz-cite-prefix">Whereas I have on my Fedora 36 (with
        a working fine log rotation process):</div>
      <div class="moz-cite-prefix">/var/log/nginx/*.log {<br>
            create 0640 nginx root<br>
            daily<br>
            rotate 10<br>
            missingok<br>
            notifempty<br>
            compress<br>
            delaycompress<br>
            sharedscripts<br>
            postrotate<br>
                /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null`
        2>/dev/null || true<br>
            endscript<br>
        }<br>
        <br>
      </div>
      <p>Can I had on (create 0640 nginx root) on the server whitout
        risking to break everything on next logs rotates?<br>
      </p>
      Thank you,<br>
      Vincent.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 9/4/22 14:17, Frank Swasey wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGcNPZ38SzereW_B5T-dXOecP-BLnBZbS0nNhD=nQMB2xseOXQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default" style="font-family:georgia,serif">This
          sounds like your log rotation process is not signalling nginx
          to write a new log.  I don't know Rocky Linux, so I can't be
          specific in further suggestions.</div>
        <div class="gmail_default" style="font-family:georgia,serif"><br>
        </div>
        <div class="gmail_default" style="font-family:georgia,serif"> ~
          Frank<br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Sun, Sep 4, 2022 at 7:24 AM
          Vincent M. <<a href="mailto:mouseless@free.fr"
            moz-do-not-send="true" class="moz-txt-link-freetext">mouseless@free.fr</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">
          <div bgcolor="#FFFFFF">
            <p><font face="Arial">Hello,</font></p>
            <p><font face="Arial">The logs are working fine but once a
                day, nginx stop loging access and then the file log file
                is empty.<br>
              </font></p>
            <p><font face="Arial">So every day I have to restart my
                nginx server in order to get the logs.</font></p>
            <p><font face="Arial">It's on a Rocky Linux 9 with Nginx
                1.20.1</font></p>
            <p><font face="Arial">Never seen that before, what should I
                check?<br>
              </font></p>
            <p>Thanks,<br>
              Vincent.<br>
            </p>
          </div>
          _______________________________________________<br>
          nginx mailing list -- <a href="mailto:nginx@nginx.org"
            target="_blank" moz-do-not-send="true"
            class="moz-txt-link-freetext">nginx@nginx.org</a><br>
          To unsubscribe send an email to <a
            href="mailto:nginx-leave@nginx.org" target="_blank"
            moz-do-not-send="true" class="moz-txt-link-freetext">nginx-leave@nginx.org</a><br>
        </blockquote>
      </div>
      <br clear="all">
      <br>
      -- <br>
      <div dir="ltr" class="gmail_signature">I am not young enough to
        know everything. - Oscar Wilde (1854-1900)</div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
nginx mailing list -- <a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
To unsubscribe send an email to <a class="moz-txt-link-abbreviated" href="mailto:nginx-leave@nginx.org">nginx-leave@nginx.org</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>