From 77f9005ba45408db3ae203120b2877b719ca6751 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 24 May 2022 23:40:56 +0400 Subject: [PATCH] Added logrotate file. --- configs/logrotate | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 configs/logrotate diff --git a/configs/logrotate b/configs/logrotate new file mode 100644 index 0000000..824761e --- /dev/null +++ b/configs/logrotate @@ -0,0 +1,15 @@ +/var/log/dwelling-radio/radio.log { + nocreate + size 1M + compress + compresscmd /usr/bin/zstd + compressext .zst + compressoptions -T0 --long -15 + uncompresscmd /usr/bin/unzstd + sharedscripts + missingok + notifempty + postrotate + /bin/pkill -HUP dwelling-radio + endscript +} \ No newline at end of file