File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,13 @@ nfpms:
70
70
- src : " package/tt.yaml.default"
71
71
dst : " /etc/tarantool/tt.yaml"
72
72
type : config
73
+
74
+ - src : " package/logrotate.conf"
75
+ dst : " /etc/logrotate.d/tt.conf"
76
+ type : config
77
+ file_info :
78
+ mode : 0600
79
+
73
80
# ZSH and Bash autocompletion scripts get placed in appropriate directories
74
81
# and get activated automatically with restarting corresponding shell after
75
82
# the package installation.
Original file line number Diff line number Diff line change
1
+ # /var/log/tarantool/<env>/<app>/<instance>/*.log
2
+ /var/log/tarantool/*/*/*/*.log {
3
+ daily
4
+ size 512k
5
+ missingok
6
+ rotate 10
7
+ compress
8
+ delaycompress
9
+ sharedscripts # Run tt logrotate only once after all logs are rotated.
10
+ postrotate
11
+ /usr/bin/tt -S logrotate
12
+ endscript
13
+ }
You can’t perform that action at this time.
0 commit comments