graphene-os-server-infrastr.../etc/logrotate.d/nginx
Daniel Micay 5f2e4a45c3 logrotate: preserve existing file owner/group/mode
wmtp and btmp are reliably created by systemd at boot with the proper
permissions which also means missingok can be dropped.
2025-11-05 23:45:10 -05:00

9 lines
191 B
Text

/var/log/nginx/access.log /var/log/nginx/error.log {
missingok
sharedscripts
nodelaycompress
maxsize 2G
postrotate
syslog-ng-ctl reopen >/dev/null
endscript
}