Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

start service on exit instead of immediately

Michael Yangd294a11bc9d7
diff --git a/scripts/install.sh b/scripts/install.sh
index 82eca656c..dbc5ff6ad 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -92,7 +92,9 @@ EOF
status "Enabling and starting ollama service..."
$SUDO systemctl daemon-reload
$SUDO systemctl enable ollama
- $SUDO systemctl restart ollama
+
+ start_service() { $SUDO systemctl restart ollama; }
+ trap start_service EXIT
;;
esac
}