in reply to Re: Emptying log file
in thread Emptying log file
The problem with rolling your own log file rotation script, as with other system utilities is that you need to take other issues into account, such as making sure that removal of old files does not remove the wrong file (such as removing /etc/passwd when /var/log/messages is a symbolic link to it.) Does your rotation script need to rotate the logs when the disks are filling up? As imp said, the existing tools have been well-tested, whatever tool you write will also need to be tested carefully.
|
|---|