feat(makefile): add platform-specific service restart commands

Merged
SH
1y ago
+32-1

Summary

  • Add new services target 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 switch target to use platform-aware services target

Test plan

  • Verify make switch works correctly on macOS (calls launchctl targets)
  • Verify make switch works 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.