Skip to content

postrotate-command not run when tcpdump terminated #1015

@cygnus2048

Description

@cygnus2048

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions