This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/setup-scripts/support/logrotate

13 lines
390 B
Plaintext
Raw Normal View History

2021-07-18 06:55:29 +00:00
/home/user/skynet-webportal/docker/data/nginx/logs/*.log {
hourly
dateext
rotate 3650
missingok
notifempty
nocompress
create 640 root root
sharedscripts
postrotate
docker exec nginx sh -c '! test -f /usr/local/openresty/nginx/logs/nginx.pid' || docker exec nginx sh -c 'kill -USR1 $(cat /usr/local/openresty/nginx/logs/nginx.pid)'
endscript
}