chore(makefile): add ollama service management targets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user