From 233d953fe484b696388d39e135625a3f0dbff426 Mon Sep 17 00:00:00 2001 From: Marco Rodrigues Date: Thu, 26 May 2016 10:55:56 +0200 Subject: [PATCH 1/4] Add missingok to rsyslog logrorate (RHEL default) --- manifests/init.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/init.pp b/manifests/init.pp index cbd56e8..5c16c06 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -430,6 +430,7 @@ '/var/log/cron', ] $default_logrotate_options = [ + 'missingok', 'sharedscripts', 'postrotate', " /bin/kill -HUP `cat ${pid_file_real} 2> /dev/null` 2> /dev/null || true", From b9aaa6ec1e19539f68520b636140039eb0ee04bf Mon Sep 17 00:00:00 2001 From: Marco Rodrigues Date: Thu, 26 May 2016 13:10:37 +0200 Subject: [PATCH 2/4] Update logrotate.redhat6 --- spec/fixtures/logrotate.redhat6 | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/fixtures/logrotate.redhat6 b/spec/fixtures/logrotate.redhat6 index ff4ebc3..578e062 100644 --- a/spec/fixtures/logrotate.redhat6 +++ b/spec/fixtures/logrotate.redhat6 @@ -8,6 +8,7 @@ /var/log/boot.log /var/log/cron { + missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true From f298655fb19398ee281610d99d42c7b554ffd893 Mon Sep 17 00:00:00 2001 From: Marco Rodrigues Date: Thu, 26 May 2016 13:10:50 +0200 Subject: [PATCH 3/4] Update logrotate.redhat5 --- spec/fixtures/logrotate.redhat5 | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/fixtures/logrotate.redhat5 b/spec/fixtures/logrotate.redhat5 index 25beeda..a0a1900 100644 --- a/spec/fixtures/logrotate.redhat5 +++ b/spec/fixtures/logrotate.redhat5 @@ -8,6 +8,7 @@ /var/log/boot.log /var/log/cron { + missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true From a7d99f5c9543671620f27cd8d1e17f398c5579a7 Mon Sep 17 00:00:00 2001 From: Marco Rodrigues Date: Thu, 26 May 2016 13:11:08 +0200 Subject: [PATCH 4/4] Update logrotate.redhat7 --- spec/fixtures/logrotate.redhat7 | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/fixtures/logrotate.redhat7 b/spec/fixtures/logrotate.redhat7 index ff4ebc3..578e062 100644 --- a/spec/fixtures/logrotate.redhat7 +++ b/spec/fixtures/logrotate.redhat7 @@ -8,6 +8,7 @@ /var/log/boot.log /var/log/cron { + missingok sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true