From b4d38e6146d1bc04cdb517dde607f05348a18aee Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 12 Jun 2023 21:35:24 +0400 Subject: [PATCH] In logrotate truncate file instead of recreating it. --- configs/logrotate | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/configs/logrotate b/configs/logrotate index 8c43e29..5c529e6 100644 --- a/configs/logrotate +++ b/configs/logrotate @@ -1,5 +1,6 @@ /var/log/dwelling-radio/*log { nocreate + copytruncate missingok notifempty size 10M @@ -8,8 +9,4 @@ compressext .zst compressoptions -T0 --long -15 uncompresscmd /usr/bin/unzstd - sharedscripts - postrotate - /bin/pkill -HUP dwelling-radio - endscript } \ No newline at end of file