mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-13 00:34:43 +00:00
Align Windows agent state with the installer
Use the installer-owned ProgramData directory consistently for token lookup, enrollment state, agent identity, receipts, and service runtime data. Pass that directory explicitly to the Windows service and retain the existing Linux default elsewhere. Contract-Neutral: Windows agent state-path alignment preserves the existing installer and agent public contract
This commit is contained in:
parent
ed492cce4d
commit
3f405af0c6
4 changed files with 44 additions and 12 deletions
|
|
@ -111,6 +111,7 @@ func TestInstallPS1OwnsWindowsServiceLoggingAndRecovery(t *testing.T) {
|
|||
script := string(content)
|
||||
required := []string{
|
||||
`$ServiceArgs += @("--log-file", "` + "`" + `"$LogFile` + "`" + `"")`,
|
||||
`"--state-dir", "` + "`" + `"$StateDir` + "`" + `"`,
|
||||
`$scOutput = sc.exe failure $AgentName reset= 86400 actions= restart/5000/restart/5000/restart/5000`,
|
||||
`Show-Error "Failed to configure service recovery actions: $scOutput"`,
|
||||
`$scOutput = sc.exe failureflag $AgentName 1`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue