monitoring: fix openbao token refresh timer not triggering

RemainAfterExit=true kept the service in "active" state, which
prevented OnUnitActiveSec from scheduling new triggers since there
was no new "activation" event. Removing it allows the service to
properly go inactive, enabling the timer to reschedule correctly.

Also fix ExecStart to use lib.getExe for proper path resolution
with writeShellApplication.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-06 19:35:59 +01:00
parent 15c00393f1
commit 025570dea1

View File

@@ -58,8 +58,7 @@ in
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = fetchOpenbaoToken; ExecStart = lib.getExe fetchOpenbaoToken;
RemainAfterExit = true;
}; };
}; };