in reply to Emptying log file
any advice on doing this in a clean way ?
As someone else pointed out, you should probably rename the file and create a new one. You may need to restart the process writing to the file in case it still has an open descriptor to the previous file. In fact, that's one big reason why it is better to rename rather than copy the file... you won't lose any log messages that way.
|
|---|