From 129229b05367efb6dbed4c6268d90148a2894d73 Mon Sep 17 00:00:00 2001 From: William Valentin Date: Tue, 24 Feb 2026 22:11:19 -0800 Subject: [PATCH] chore(makefile): add ollama service management targets --- Makefile | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d9da07a..89016c1 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # Flynn Makefile # Self-hosted personal AI agent -.PHONY: build dev start stop restart status logs tui tui-fs tui-dev test test-run lint typecheck check help deps install daemon-start daemon-stop daemon-restart daemon-status daemon-logs enable disable llama-start llama-stop llama-restart llama-status llama-logs llama-enable llama-disable skills-list skills-info skills-install skills-uninstall skills-refresh +.PHONY: build dev start stop restart status logs tui tui-fs tui-dev test test-run lint typecheck check help deps install daemon-start daemon-stop daemon-restart daemon-status daemon-logs enable disable llama-start llama-stop llama-restart llama-status llama-logs llama-enable llama-disable ollama-start ollama-stop ollama-restart ollama-status ollama-logs ollama-enable ollama-disable skills-list skills-info skills-install skills-uninstall skills-refresh # Default target .DEFAULT_GOAL := help @@ -72,6 +72,33 @@ llama-disable: ## Disable llama-server from starting on boot systemctl --user disable llama-server.service @echo "Llama-server disabled from starting on boot" +# Ollama daemon management +ollama-start: ## Start the Ollama systemd service + systemctl --user start ollama.service + @echo "Ollama daemon started" + +ollama-stop: ## Stop the Ollama systemd service + systemctl --user stop ollama.service + @echo "Ollama daemon stopped" + +ollama-restart: ## Restart the Ollama systemd service + systemctl --user restart ollama.service + @echo "Ollama daemon restarted" + +ollama-status: ## Check Ollama systemd service status + systemctl --user status ollama.service + +ollama-logs: ## Show Ollama systemd service logs + journalctl --user -u ollama.service -f + +ollama-enable: ## Enable Ollama to start on boot + systemctl --user enable ollama.service + @echo "Ollama enabled to start on boot" + +ollama-disable: ## Disable Ollama from starting on boot + systemctl --user disable ollama.service + @echo "Ollama disabled from starting on boot" + # Aliases for convenience stop: daemon-stop ## Alias for daemon-stop restart: daemon-restart ## Alias for daemon-restart