Skip to content

Conversation

@tschaefer
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds FreeBSD client support to the agent deployment system by implementing platform-specific service management alongside the existing Linux/systemd support.

Changes:

  • Added FreeBSD rc service support with kernel-based branching in deploy, teardown, and update operations
  • Changed file ownership specification from "root:root" to "0:0" for cross-platform compatibility
  • Removed the FreeBSD blocking error in machine.go to enable FreeBSD deployments

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
internal/agent/update.go Added kernel switch to restart services using either systemctl (Linux) or service command (FreeBSD)
internal/agent/teardown.go Refactored into kernel-specific helper methods for systemd and rc service cleanup, updated signature to accept MachineInfo
internal/agent/machine.go Enabled FreeBSD support by removing the blocking error and properly assigning arch variable
internal/agent/deploy.go Added FreeBSD rc service deployment, changed ownership to numeric IDs, and added kernel-based service enablement
internal/agent/assets/alloy.rc New FreeBSD rc script for alloy service with proper daemon configuration
internal/agent/agent_test.go Updated test expectations to reflect changes in execution flow with kernel-agnostic dry-run mode
internal/agent/agent.go Updated teardownAgent call to pass MachineInfo parameter

@tschaefer tschaefer marked this pull request as ready for review January 17, 2026 08:51
@tschaefer tschaefer merged commit 38f10ea into main Jan 17, 2026
2 checks passed
@tschaefer tschaefer deleted the tschaefer/feat/enable-freebsd branch January 17, 2026 08:52
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.

2 participants