Skip to content

Run the agent as a Windows service - #16

Merged
mervin008 merged 2 commits into
mainfrom
feat/windows-service
Oct 11, 2026
Merged

mervin008 merged 2 commits into
mainfrom
feat/windows-service

Conversation

@mervin008

@mervin008 mervin008 commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Part of certpilot/certpilot#139 (certpilot-agent#10).

certpilot-agent service install registers the agent as a Windows service: starts with Windows, restarts after a failure, logs to the Event Log. It refuses to install before the host has enrolled. CI installs the real binary as a service, waits for a heartbeat, stops it and removes it.

@mervin008
mervin008 marked this pull request as ready for review October 10, 2026 18:08
certpilot-agent service install registers it with the service manager to start with Windows and restart after a failure. run notices when the service manager started it, stops cleanly when asked, and logs to the Event Log.
@mervin008
mervin008 force-pushed the feat/windows-service branch from 605a1f6 to 1884b8a Compare October 11, 2026 18:43
@mervin008
mervin008 merged commit 8eea1ef into main Oct 11, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant