When emptying log files, don’t just rm log_file.log as the disk space won’t be freed until the application that is logging is restarted.
It is better to use > log_file.log as that will allow the file system to free the space that is used by the open file.
