From 724b946f7a620d7b53c59025d7ba8e2d0a066c20 Mon Sep 17 00:00:00 2001 From: antoniodoblas Date: Tue, 9 Feb 2021 15:49:29 +0100 Subject: #1020 logrotate ignore non-existent logs with missingok If the logrotate files for opengnsys indicate to rotate files that do not exist, the process ignores them and continues with the next one. The missingok clause is added to the logrotate configuration files. --- repoman/etc/logrotate.tmpl | 2 +- server/etc/logrotate.tmpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/repoman/etc/logrotate.tmpl b/repoman/etc/logrotate.tmpl index 62cdbaf0..01392cd5 100644 --- a/repoman/etc/logrotate.tmpl +++ b/repoman/etc/logrotate.tmpl @@ -15,8 +15,8 @@ endscript /opt/opengnsys/log/bttrack.log /opt/opengnsys/log/torrent-creator.log /opt/opengnsys/log/ogAdmRepo.log -/opt/opengnsys/log/opengnsys.log { rotate 5 size 100k + missingok } diff --git a/server/etc/logrotate.tmpl b/server/etc/logrotate.tmpl index 233efc57..adfc5047 100644 --- a/server/etc/logrotate.tmpl +++ b/server/etc/logrotate.tmpl @@ -17,4 +17,5 @@ compress { rotate 5 size 100k + missingok } -- cgit v1.2.3-18-g5258