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
This commit is contained in:
10
Makefile
10
Makefile
@@ -6,6 +6,9 @@ REPO_DIR := $(shell pwd)
|
|||||||
# Items to symlink
|
# Items to symlink
|
||||||
ITEMS := scripts skills agents settings.json
|
ITEMS := scripts skills agents settings.json
|
||||||
|
|
||||||
|
# LLM services to manage
|
||||||
|
LLM_SERVICES := atlas forge swift sage
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@echo "Installing Claude Code config symlinks..."
|
@echo "Installing Claude Code config symlinks..."
|
||||||
@mkdir -p $(CLAUDE_DIR)
|
@mkdir -p $(CLAUDE_DIR)
|
||||||
@@ -52,3 +55,10 @@ status:
|
|||||||
echo " $$item: not found"; \
|
echo " $$item: not found"; \
|
||||||
fi \
|
fi \
|
||||||
done
|
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))
|
||||||
|
|||||||
Reference in New Issue
Block a user