Werk #17904: cmk-update-agent: Logging in single directory deployment

Component Agent bakery
Title cmk-update-agent: Logging in single directory deployment
Date May 8, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p1 Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

When activating the single directory deployment via the ruleset Customize agent package (Linux), parts of the agent updater were unable to initialize logging.
That is, running the agent updater didn't log to /opt/checkmk/agent/default/runtime/cmk-update-agent.log. Affected were the minutely systemd timer that checks for a pending installation, and manual executions of /opt/checkmk/agent/default/package/bin/cmk-update-agent.

All invocations of the agent updater now write log messages correctly.

To the list of all Werks