if you need to clear down a log file on linux as it is getting too big. Rather than delete and allow the application to re-create it. You can use the following command which will not interupt the program using it.
cat /dev/null > /path/to/logfile # to empty all the logs in a directory for i in /var/log/*; do cat /dev/null > $i; done