ba0715088d
logrotate: don't fail if service not running OBS-URL: https://build.opensuse.org/request/show/1154405 OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=254
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
/var/log/nginx/*.log {
|
|
compress
|
|
dateext
|
|
maxage 365
|
|
rotate 99
|
|
size=+4096k
|
|
missingok
|
|
notifempty
|
|
delaycompress
|
|
lastaction
|
|
# "-s reopen" will use the pid file passed in the config file or the compiled in default path
|
|
[ -f /run/nginx.pid ] && /usr/sbin/nginx -s reopen
|
|
endscript
|
|
}
|