Werk #5508: cmk-update-agent.exe: Prevent Agent Updater from running twice

Component Agent bakery
Title cmk-update-agent.exe: Prevent Agent Updater from running twice
Date Aug 13, 2018
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 1.5.0p2 1.6.0b1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

On Windows, when cmk-update-agent.exe is invoked, a lockfile is created to prevent it from running twice at the same time.

This mechanism did not work properly when cmk-update-agent.exe got invoked multiple times from different user accounts, because the lockfiles were created within different directories.

This is now mitigated by creating the lockfile regardless of the current user within the "temp" directory of the Check_MK Agent installation.

To the list of all Werks