Problem with tinc.log and logrotate.

Guus Sliepen guus at tinc-vpn.org
Fri Apr 26 12:43:25 CEST 2013


On Fri, Apr 26, 2013 at 12:21:25PM +0200, Ramses II wrote:

> Well, because I want to have a log file by day, I have created a logrotate
> file (/etc/logrotate.d/tinc) that contains the following lines:
> 
> -----------------------------------------
> /var/log/tinc.log {
>   missingok
>   rotate 7
>   daily
>   create 0640 root root

Add the following:

  postrotate
    kill -HUP `cat /var/run/tinc.pid`
  endscript

> }
> -----------------------------------------

-- 
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/216ebfab/attachment.pgp>


More information about the tinc mailing list