http://qs321.pair.com?node_id=1003874


in reply to Log File Rotation

The common approach to this problem is to
  1. rename log-file. Like mv file.log file.log.1. The process which holds the old file descriptor open will write to renamed file from this point.
  2. touch new log file. touch file.log or otherwise create it.
  3. inform the process. For example, send it SIGHUP or even restart it.
It is not related to perl, I believe.