From 26e5f6a597f634c7e58dc28f71b020a78ebf1a71 Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Sat, 2 May 2026 11:11:04 +0200 Subject: [PATCH] refactor: make LLM service management configurable - Add LLM_SERVICES variable for easy service management - Add restart-llm-% pattern rule for individual service control - Refactor restart-llm to loop through services --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 2453c06..84735d2 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,9 @@ REPO_DIR := $(shell pwd) # Items to symlink ITEMS := scripts skills agents settings.json +# LLM services to manage +LLM_SERVICES := atlas forge swift sage + install: @echo "Installing Claude Code config symlinks..." @mkdir -p $(CLAUDE_DIR) @@ -52,3 +55,10 @@ status: echo " $$item: not found"; \ fi \ done + +restart-llm-%: + @echo "Restarting com.vllm-mlx-$*..." + @launchctl bootout gui/$$(id -u) ~/Library/LaunchAgents/com.vllm-mlx-$*.plist || true + @launchctl bootstrap gui/$$(id -u) ~/Library/LaunchAgents/com.vllm-mlx-$*.plist + +restart-llm: $(patsubst %,restart-llm-%,$(LLM_SERVICES))