logrotate.d

This commit is contained in:
Karol Wypchlo 2022-09-20 13:51:40 +02:00
parent e4cd4bf991
commit 4b52d3c671
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 28 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}