Skip to content

PID files: use file locks #1569

Open
Open
@ghost

Description

Currently there are various problems with the PID file approach for process management. We can improve the situation easily by using file locks on the PID files. Solves problems and makes it easier to find out if the program is still running. File is locked -> bot is running. no file lock -> bot not running.

However, that means that the file needs to be locked by the bot itself, not by intelmqctl (which is currently the case)!

Not sure if this change is safe and easy enough to be implemented in a maintenance release.

See intelmq.bin.intelmqctl.IntelMQProcessManager.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions