<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">there seem to be two methods to tell nginx to re-open the log file after the file was rotated (we use logrotate).</div><div class=""><br class=""></div><div class="">1) <font face="Menlo" class="">nginx -s reopen</font></div><div class=""><br class=""></div><div class="">2) <font face="Menlo" class="">kill -USR1</font></div><div class=""><br class=""></div><div class="">Which is the preferred method, and why.</div><div class=""><br class=""></div><div class="">I am asking because we have seen <span style="font-family: Menlo;" class="">nginx -s reopen</span> failing because of a transient issue with the configuration. According to the man page <span style="font-family: Menlo;" class="">reopen</span> should be the same as SIGUSR1, but the error we saw implies that the config was reloaded (ie SIGHUP).</div><div class=""><br class=""></div><div class="">Version: <span style="font-family: Menlo;" class="">nginx/1.19.9</span></div><div class=""><br class=""></div><div class="">Thanks…</div><div class=""><br class=""></div><div class="">Roger</div><div class=""><br class=""></div></body></html>