Correct launchctl commands for MacOS agent management#4833
Merged
benjirewis merged 4 commits intomainfrom Mar 12, 2026
Merged
Conversation
✅ Deploy Preview for viam-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
ale7714
approved these changes
Mar 12, 2026
Member
ale7714
left a comment
There was a problem hiding this comment.
LGTM, question about the viam-server service can be address on this PR or a follow up
Member
Author
Yes! Good catch. Removed the two references to starting |
|
🔎💬 Inkeep AI search and chat service is syncing content for source 'Viam Docs' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Updates
launchctlcommands for stopping and startingviam-agenton MacOS to include potentially necessaryenable/bootstrap/bootoutcommands.Why
launchctlis finicky and not as full-featured assystemctl. I have learned thatlaunchctl kill/launchctl stopdo NOT fully stopviam-agentsince we haveKeepAlive: truein the plist that unconditionally restartsviam-agent.I cannot find a clever/simple to achieve the same functionality as
systemd/systemctl: if the process stops for an update or an app-requested restart, resurrect, but if it's stopped with alaunchctlcommand do NOT resurrect. The recommendation online seems to be tobootoutyourKeepAlive: trueservice if you want to fully stop it.KeepAlivedoes have more expressiveness than justtrue, but I do not think any of the options are valid paths for us. ThePathStatekey seems interesting, but I cannot come up with a good way to use it.Link to updated page deploy
https://deploy-preview-4833--viam-docs.netlify.app/manage/reference/viam-agent/manage-viam-agent/