Is it possible to trim a log file a daemon has open without the daemon closing the file?

Posted by arturh on Stack Overflow See other posts from Stack Overflow or by arturh
Published on 2010-06-15T09:51:58Z Indexed on 2010/06/15 11:12 UTC
Read the original article Hit count: 175

Filed under:
|
|
|
|

I have a daemon writing to a log file that, eventually, fills up the disk. Is there a way for me to periodically limit the size of the log file without stopping the daemon without changing the code in it? SIGHUP kills the daemon.

© Stack Overflow or respective owner

Related posts about linux

Related posts about logging