nginx/nginx.logrotate
Marcus Rueckert 0879c96bf4 - Fix the logrotate script: we had a hardcoded postrotate action
pointing to /etc/init.d/nginx. This does not exist anymore on
  systemd hosts. Replace it with /usr/sbin/nginx -s reopen,  which
  will use the pid file passed in the config file or the compiled
  in default path.

OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=71
2016-10-10 10:26:20 +00:00

16 lines
311 B
Plaintext

/var/log/nginx/*.log {
compress
dateext
maxage 365
rotate 99
size=+4096k
missingok
notifempty
create 644 root root
postrotate
# -s reopen will use the pid file passed in the config file or the compiled in default path
/usr/sbin/nginx -s reopen
endscript
}