mirror of
https://github.com/ollama/ollama.git
synced 2025-12-10 02:52:34 +01:00
start service on exit instead of immediately
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user