scVENUS / PeekabooAV

Peekaboo Extended Email Attachment Behavior Observation Owl
https://peekabooav.de
GNU General Public License v3.0
66 stars 20 forks source link

PID file can contain our own pid and confuse us #196

Closed michaelweiser closed 2 years ago

michaelweiser commented 2 years ago

Since we do not check that the PID read from an existing PID file isn't our own, we can erronously detect ourselves as another running Peekaboo instance and refuse to start. This can happen for example if /run isn't cleared at boot and (particularly in containers) our process receives the same PID on consecutive executions. But obviously this can also happen in any other scenario if we're just restarted often enough to receive the same PID twice.