On 30/04/14 02:13, [email protected] wrote:
Hello,we have an issue that the Puppetmaster logrotate isn't working. We are using the following default Logrotate: /var/log/puppet/*log { missingok sharedscripts create 0644 puppet puppet compress rotate 4 postrotate pkill -USR2 -u puppet -f 'puppet master' || true [ -e /etc/init.d/puppet ] && /etc/init.d/puppet reload > /dev/null 2>&1 || true endscript } After running the logrotate script we have this message in syslog: Apr 29 09:36:12 puppet1 puppet-master[3109]: Caught USR2; calling reopen_logs Apr 29 09:36:12 puppet1 puppet-master[3109]: Reopening log files The problem is that the logrotate does not create a new masterhttp.log. We tried it with Puppet-3.4.2, 3.4.3 and 3.5.1.
I can't help with the puppet side of things, but try 'copytruncate' in your logrotate conf instead, and remove the postrotate section.
-- Postgresql & php tutorials http://www.designmagick.com/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5369577A.1010105%40gmail.com. For more options, visit https://groups.google.com/d/optout.
