nginx -s reopen

Category: Web Servers & Proxies

nginx -s reopen

Reopen nginx log files after log rotation

Makes nginx close and reopen its access and error log files, which logrotate needs after moving the old logs aside. Run it from a logrotate postrotate script so nginx writes to fresh files. Equivalent to sending the USR1 signal to the master process.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.