logrotate.d
This commit is contained in:
parent
e4cd4bf991
commit
4b52d3c671
|
@ -0,0 +1,15 @@
|
||||||
|
/home/user/skynet-webportal/docker/data/nginx/logs/*.log {
|
||||||
|
daily
|
||||||
|
rotate 3650
|
||||||
|
minsize 500M
|
||||||
|
create 644 root root
|
||||||
|
notifempty
|
||||||
|
dateext
|
||||||
|
missingok
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
docker exec nginx nginx -s reopen
|
||||||
|
endscript
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
/home/user/skynet-webportal/docker/data/sia/*.log
|
||||||
|
/home/user/skynet-webportal/docker/data/sia/*/*.log
|
||||||
|
/home/user/skynet-webportal/docker/data/sia/*/*/*.log {
|
||||||
|
daily
|
||||||
|
rotate 3650
|
||||||
|
minsize 500M
|
||||||
|
create 644 root root
|
||||||
|
notifempty
|
||||||
|
dateext
|
||||||
|
missingok
|
||||||
|
compress
|
||||||
|
delaycompress
|
||||||
|
}
|
Reference in New Issue