start service on exit instead of immediately
This commit is contained in:
parent
5306b0269d
commit
d294a11bc9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue