回答:
私はあなたに同意します、それは最近のファイルへのより簡単なアクセスを提供するだけであるべきです。とにかく、実際の動作はlogrotate 'delaycompress'ディレクティブによって決定されます。これは、「回転時にファイルを圧縮せず、次回は圧縮する」というものです。
歴史的な理由はlogrotateマニュアルにあります:
Postpone compression of the previous log file to the next rotation
cycle. This has only effect when used in combination with compress.
It can be used when some program can not be told to close its logfile and
thus might continue writing to the previous log file for some time.
はい、これは、より新しいログファイルにアクセスしやすくするために行われます。logrotateオプションdelaycompressはこれを制御します。logrotateマンページから:
遅延圧縮
Postpone compression of the previous log file to the next rotation cycle. This only has effect when used in combination with compress. It can be used when some program cannot be told to close its logfile and thus might continue writing to the previous log file for some time.
/etc/logrotate.conf、およびの下のファイルで使用されます/etc/logrotate.d/*。