Marcus Rueckert
0879c96bf4
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
16 lines
311 B
Plaintext
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
|
|
}
|
|
|