Tinc Log rotation fails
Peter Dey
tinc at realmtech.net
Thu Nov 29 22:08:21 CET 2012
> It seems to work fine except that once log rotation takes place, the daemon
> does not recreate the log, nor will it write to the new log even if an empty
> file is put into place.
>
> The only way to re-establish the log writing is to restart the tincd service.
That's pretty normal behaviour. Most daemons behave similarly (look at the
logrotate config for Apache). Even though logrotate renames the file, the
daemon still retains a file handle to the old log's inode.
To fix it, add a "postrotate" clause to your config:
postrotate
/etc/init.d/tinc restart > /dev/null
endscript
Cheers,
Peter
More information about the tinc
mailing list