Problem with tinc.log and logrotate.

Guus Sliepen guus at tinc-vpn.org
Fri Apr 26 14:04:35 CEST 2013


On Fri, Apr 26, 2013 at 01:05:10PM +0200, Ramses II wrote:

> Now I have the following in logrotate file (tinc):
> 
> /var/log/tinc.log {
[...]
>   postrotate
>     kill -HUP `cat /var/run/tinc.pid`
>   endscript
> }
> 
> I run "logrotate -f /etc/logrotate.d/tinc" and the same situation, creates
> the new "tinc.log" but it goes report in the "tinc.log.4" file:
> 
> ----------- tinc.log.4 ------------------
> .
> .
> 1366973321 tinc[14882]: Got HUP signal
> .
> .
> -----------------------------------------

The "Got HUP signal" message will always end up in the old log. Which version
of tinc are you running? You need 1.0.15 or later for this to work
correctly.

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130426/02dbbc7c/attachment.pgp>


More information about the tinc mailing list