From 2db482e800f7a7bc32d6a9651cd7ccd4f9e3f2a7 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 27 Sep 2018 23:52:03 -0600 Subject: [PATCH] Created sample logrotate config file --- etc/logrotate.d/cfddns | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 etc/logrotate.d/cfddns diff --git a/etc/logrotate.d/cfddns b/etc/logrotate.d/cfddns new file mode 100644 index 0000000..540fcba --- /dev/null +++ b/etc/logrotate.d/cfddns @@ -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 +}