ID: 14958
Title: cmk-update-agent: Fix lockfile handling
Component: agents
Level: 1
Class: Bug fix
Version: 2.2.0i1
This Werk mainly fixes an inconvenience that occured when invoking multiple
instances of the Agent Updater simultaneously.
Since Werk #14732, it's possible for the Agent Updater to wait for running
exclusively.
However, before this Werk, a second instance failed to actually open and hold the
respective lockfile (because the first instance deleted it). Hence, it also failed to
delete it in the end.
This resulted in an error message like <tt>No such file or directory:
'/tmp/cmk-update-agent.pid'"</tt>. This didn't result in a crash,
but the error was
printed to the logfile and could lead to confusion.
Show replies by date