added logrotate
This commit is contained in:
parent
27f5d26006
commit
2d3531d1dd
1 changed files with 14 additions and 0 deletions
14
root/etc/logrotate.d/geoip2influx
Normal file
14
root/etc/logrotate.d/geoip2influx
Normal file
|
@ -0,0 +1,14 @@
|
|||
/config/geoip2db/geoip2influx.log {
|
||||
weekly
|
||||
rotate 7
|
||||
size 25M
|
||||
compress
|
||||
delaycompress
|
||||
nodateext
|
||||
missingok
|
||||
notifempty
|
||||
postrotate
|
||||
s6-svc -r /var/run/s6/services/geoip2influx
|
||||
endscript
|
||||
su abc abc
|
||||
}
|
Loading…
Reference in a new issue