1 Title: Agent Updater: Prevent broken state files caused by incomplete writes
10 When the agent updater is being executed it writes it's current deployment state
11 to a state file. When the system is turned of suddenly it could cause a file
12 corruption of the cmk-update-agent.state file. We prevent this now by writing to
13 a temporary file first, flush it and then move it over to the state file path.