We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mainly in that the original provides a log entry when there is something wrong with the logrotate run.. That is something that is very good to have.
notice: /Stage[main]/Logrotate::Base/File[/etc/cron.daily/logrotate]/content: --- /etc/cron.daily/logrotate 2013-07-18 10:08:07.000000000 +0000 +++ /tmp/puppet-file20140421-26981-1m3pwq9-0 2014-04-21 14:39:58.000000000 +0000 @@ -1,8 +1,6 @@ #!/bin/sh +# THIS FILE IS AUTOMATICALLY DISTRIBUTED BY PUPPET. ANY CHANGES WILL BE +# OVERWRITTEN. -/usr/sbin/logrotate /etc/logrotate.conf >/dev/null 2>&1 -EXITVALUE=$? -if [ $EXITVALUE != 0 ]; then - /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]" -fi -exit 0 +test -x /usr/sbin/logrotate || exit 0 +/usr/sbin/logrotate /etc/logrotate.conf
The text was updated successfully, but these errors were encountered:
Fixes rodjek#34 - Ubuntu Xenial and up support (rodjek#43)
5bf6fc4
* Fixes rodjek#34 - Ubuntu Xenial and up support
No branches or pull requests
Mainly in that the original provides a log entry when there is something wrong with the logrotate run.. That is something that is very good to have.
The text was updated successfully, but these errors were encountered: