summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantoniodoblas <adv@uma.es>2021-02-09 15:49:29 +0100
committerantoniodoblas <adv@uma.es>2021-02-09 15:55:23 +0100
commit724b946f7a620d7b53c59025d7ba8e2d0a066c20 (patch)
tree55641a86910a2f8f9553dac354906bfa15362ab0
parentfd1de7940cbbca93f09850a5c581c73a369270d8 (diff)
#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.
-rw-r--r--repoman/etc/logrotate.tmpl2
-rw-r--r--server/etc/logrotate.tmpl1
2 files changed, 2 insertions, 1 deletions
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
}