Created sample logrotate config file
This commit is contained in:
parent
7f90f496a9
commit
2db482e800
15
etc/logrotate.d/cfddns
Normal file
15
etc/logrotate.d/cfddns
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
### Rotate cfddns log file
|
||||||
|
|
||||||
|
# location of log file (-l parameter of script file)
|
||||||
|
/path/to/cfddns.log {
|
||||||
|
|
||||||
|
# rotate log file weekly -- you could also use 'daily', 'monthly' or
|
||||||
|
# specify a size using 'size 100k', for example
|
||||||
|
weekly
|
||||||
|
|
||||||
|
# keep 3 weeks of old logs (3 files) and delete older ones
|
||||||
|
rotate 3
|
||||||
|
|
||||||
|
# compress old log files using gzip (default)
|
||||||
|
compress
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user