Archive for June, 2011
How to null logs in Linux
To null out log /var/tmp/mond.log
Run: cp /dev/null /var/tmp/mond.log
All the content of the log file will be removed
If log is in use.. you can do this:
Send a SIGSTOP signal to the process which you want to pause/stop, copy the log files to target directory and finally issue a SIGCONT signal to the same process.