feat(makefile): add platform-specific service restart commands
Merged
SH
1y ago+32+32+01234567890123456789-1-1-0123456789
Summary
- Add new
servicestarget that detects OS and calls appropriate service manager - launchctl targets now only run on macOS (via the services target)
- Add systemctl targets for Linux (code-syncer, dotfiles-updater, ollama)
- Update
switchtarget to use platform-awareservicestarget
Test plan
- Verify
make switchworks correctly on macOS (calls launchctl targets) - Verify
make switchworks correctly on Linux (calls systemctl targets) - Verify individual
make systemctl-*targets work on Linux
š¤ Generated with Claude Code
Summary by cubic
Adds a platform-aware services target so make switch restarts the right user services on each OS. On macOS it uses launchctl; on Linux it uses systemd user units.
- New Features
- Added services target that detects OS and routes to launchctl (macOS) or systemctl (Linux).
- Added systemctl targets for code-syncer, dotfiles-updater, and ollama, plus a systemctl aggregate target.
- Updated switch to call services; launchctl restarts now run only on macOS.