feat: add macOS launchd daemon support#172
Merged
ScriptedAlchemy merged 6 commits intoJul 1, 2026
Merged
Conversation
|
- Make ServiceRunner variants unconditional so match dispatch compiles on every platform (fixes E0004 zero-arm matches on Windows); platform selection now lives only in ServiceRunner::current() - Fix Linux clippy failures (unused parameters, unnecessary Result wraps, underscore-prefixed binding read in the systemd arm) - Restore the PermissionDenied socket-state arm dropped in the module split and type socket state as an enum with a Display impl instead of comparing display strings - Make macOS install idempotent: bootout (tolerating not-loaded) before enable/bootstrap/kickstart, shared with the refresh path - Replace the positional Vec-of-Vec launchctl command plan with LaunchdCommand entries carrying an explicit failure mode; match not-loaded errors against launchctl stderr instead of formatted error prose - Disable the launchd agent on install --no-start so the plist stays inert at the next login, and create runtime dirs on --no-start too - Preserve the TRACEDECAY_DATA_DIR override from the installed plist when refreshing so refresh from a clean shell keeps the data dir - Move service tests into src/daemon/service.rs, removing the pub(super) test-only leaks and the test-gating asymmetry
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.
Summary
Tests