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 <[email protected]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
tinc mailing list
[email protected]
http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc

Reply via email to