From 71bf5169de8126f14cd989d325db1fa9008ad02b Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Mon, 19 Aug 2019 16:21:49 +0200 Subject: [PATCH] Add logrotate configuration Signed-off-by: Severin Kaderli --- install | 1 + system/etc/logrotate.d/custom.conf | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 system/etc/logrotate.d/custom.conf diff --git a/install b/install index 431c220..394f36e 100755 --- a/install +++ b/install @@ -151,6 +151,7 @@ declare -A COPY_ROOT_FILES COPY_ROOT_FILES=( ["/etc/docker/daemon.json"]="644" ["/etc/gemrc"]="644" + ["/etc/logrotate.d/custom.conf"]="644" ["/etc/mkinitcpio.conf"]="644" ["/etc/NetworkManager/conf.d/dns.conf"]="644" ["/etc/pacman.conf"]="644" diff --git a/system/etc/logrotate.d/custom.conf b/system/etc/logrotate.d/custom.conf new file mode 100644 index 0000000..fd3b013 --- /dev/null +++ b/system/etc/logrotate.d/custom.conf @@ -0,0 +1,11 @@ +compresscmd zstd +uncompresscmd unzstd +compressoptions -9 --long -T0 +compressext .zst + +/home/severin/.local/log/*.log { + compress + daily + rotate 5 + size 512K +} \ No newline at end of file