From 2ea337a3b00c4f5926182eadc81e68ea88870db7 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 26 Sep 2022 11:30:13 +0200 Subject: [PATCH 1/2] change skyd logrotate to copytruncate --- setup-scripts/logrotate.d/skynet-webportal-skyd | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup-scripts/logrotate.d/skynet-webportal-skyd b/setup-scripts/logrotate.d/skynet-webportal-skyd index 698ae071..d5f1e494 100644 --- a/setup-scripts/logrotate.d/skynet-webportal-skyd +++ b/setup-scripts/logrotate.d/skynet-webportal-skyd @@ -1,13 +1,12 @@ /home/user/skynet-webportal/docker/data/sia/*.log /home/user/skynet-webportal/docker/data/sia/*/*.log { daily - rotate 3650 - minsize 500M - create 644 root root + rotate 10 + minsize 100M + copytruncate notifempty dateext missingok compress compressoptions --best - delaycompress } From b2313c602ada97ac94509d9b61dc55adc37ac742 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 26 Sep 2022 11:30:24 +0200 Subject: [PATCH 2/2] new pinner logrotate config --- setup-scripts/logrotate.d/skynet-webportal-pinner | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 setup-scripts/logrotate.d/skynet-webportal-pinner diff --git a/setup-scripts/logrotate.d/skynet-webportal-pinner b/setup-scripts/logrotate.d/skynet-webportal-pinner new file mode 100644 index 00000000..a12a17bb --- /dev/null +++ b/setup-scripts/logrotate.d/skynet-webportal-pinner @@ -0,0 +1,11 @@ +/home/user/skynet-webportal/docker/data/pinner/*.log { + daily + rotate 10 + minsize 100M + copytruncate + notifempty + dateext + missingok + compress + compressoptions --best +}