On 04/29/14 18:13, willi.feh...@home24.de 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 add that it doesn't work in 3.3.1 on openSUSE 12.x either.
Signal USR2 doesn't work there, log files are not reopened. (I
can't upgrade to 3.5 yet, am waiting for that to check if the
problem is still there.)

I resorted to restart the puppet service, instead of reloading it.

Cheers,
        Joachim

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: jsch...@acm.org

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/lk994f%24s18%241%40ger.gmane.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to