kolide/launcher

Check recovery actions before editing them

RebeccaMahany opened this issue · 0 comments

On launcher service startup on Windows, we check the registry for settings related to running the launcher service, and edit those settings as needed, to ensure a consistent service definition across earlier and more recent launcher installations.

One of the settings we edit is recovery actions. Unlike with our other edits, we don't read the current state of those settings before setting them. We should update this function to read the current settings first, and only perform an edit if they aren't already set correctly, in order to reduce the number of times we edit the registry.

The relevant function lives here.