rotate task logs

This commit is contained in:
Girish Ramakrishnan
2019-03-18 22:05:35 -07:00
parent add954db80
commit a435e88b25
3 changed files with 14 additions and 5 deletions
+10 -2
View File
@@ -1,6 +1,7 @@
# logrotate config for app and crash logs
# logrotate config for app, crash, addon and task logs
/home/yellowtent/platformdata/logs/*/*.log {
# man 7 glob
/home/yellowtent/platformdata/logs/[!t][!a][!s][!k][!s]/*.log {
# only keep one rotated file, we currently do not send that over the api
rotate 1
size 10M
@@ -8,3 +9,10 @@
nocompress
copytruncate
}
/home/yellowtent/platformdata/logs/tasks/*.log {
monthly
rotate 0
missingok
}