Werk #5578: Fixed process locking (pid file handling)

Component Event Console
Title Fixed process locking (pid file handling)
Date Dec 12, 2017
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.5.0i2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

The PID file handling of the Event Console had the following issues:

a) The locking was only done by the init script. Manual executions could lead to multiple running EC processes. This has been fixed by adding an additional file lock to the PID file. b) The PID file was only removed in case the EC stopped without exception. In case one happened, the PID file was left over refering to the old PID.

To the list of all Werks