1. 参考http://unix.stackexchange.com/questions/33447/why-we-should-use-create-and-copytruncate-together
copytruncate
Truncate the original log file to zero size in place after creating a copy, instead of moving the old log file and optionally creating a new one. It can be used when some program cannot be told to close its logfile and thus might continue writing (appending) to the previous log file forever. Note that there is a very small time slice between copying the file and truncating it, so some logging data might be lost. When this option is used, the create option will have no effect, as the old log file stays in place.
2. 原来产品里面使用的是 使用命令压缩备份文件(mv a.out a.out.1; gzip a.out),然后重启进程。如果进程重启不成功,会导致原来的log文件会仍被原有进程使用,并不断增长,最终导致磁盘空间不足。