tcpdump version 4.9.3
Trying to use postrotate-command to compress the files and does work when the files are rotated, however, when terminating (tried SIGINT, SIGHUP, and SIGTERM) the postrotate-command is not run on the last file.
This leads to a mixture of compressed and uncompressed files.
Worse is when the postrotate-command is doing additional processing of the file, all data since the last rotate is lost.
I believe when terminating and a postrotate-command is specified it should also be run on the active file as well.