Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missingok to rsyslog logrorate (RHEL default) #113

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
'/var/log/cron',
]
$default_logrotate_options = [
'missingok',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section is 'RedHat', default: { so it applies to RedHat and everything that is not explicitly called out above (Suse and Debian).

'sharedscripts',
'postrotate',
" /bin/kill -HUP `cat ${pid_file_real} 2> /dev/null` 2> /dev/null || true",
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/logrotate.redhat5
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/logrotate.redhat6
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions spec/fixtures/logrotate.redhat7
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down