nginx-proxy-manager/rootfs/etc/logrotate
Zoey 8846543007
lang fix/dep updates/improve goaccess
Signed-off-by: Zoey <zoey@z0ey.de>
2024-11-02 18:44:45 +01:00

14 lines
349 B
Text

/data/nginx/*.log {
daily
rotate 3
missingok
notifempty
compress
sharedscripts
prerotate
if [ -n "$(pgrep goaccess)" ]; then pkill goaccess; fi
endscript
postrotate
if [ -s /usr/local/nginx/logs/nginx.pid ]; then nginx -s reload; fi
endscript
}