21 lines
595 B
Text
21 lines
595 B
Text
# Generic logrotate config for Red Hat systems. Works with both official
|
|
# Fedora and RHEL packages as well as PuppetLabs distributions.
|
|
|
|
/var/log/puppetlabs/masterhttp.log /var/log/puppet/masterhttp.log {
|
|
compress
|
|
missingok
|
|
notifempty
|
|
nocreate
|
|
}
|
|
|
|
/var/log/puppetlabs/puppetd.log /var/log/puppet/puppetd.log {
|
|
compress
|
|
missingok
|
|
notifempty
|
|
nocreate
|
|
sharedscripts
|
|
postrotate
|
|
([ -x /etc/init.d/puppet ] && /etc/init.d/puppet rotate > /dev/null 2>&1) ||
|
|
([ -x /usr/bin/systemctl ] && /usr/bin/systemctl kill -s USR2 puppet.service > /dev/null 2>&1) || true
|
|
endscript
|
|
}
|