mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
start service on exit instead of immediately
This commit is contained in:
parent
5306b0269d
commit
d294a11bc9
@ -92,7 +92,9 @@ EOF
|
|||||||
status "Enabling and starting ollama service..."
|
status "Enabling and starting ollama service..."
|
||||||
$SUDO systemctl daemon-reload
|
$SUDO systemctl daemon-reload
|
||||||
$SUDO systemctl enable ollama
|
$SUDO systemctl enable ollama
|
||||||
$SUDO systemctl restart ollama
|
|
||||||
|
start_service() { $SUDO systemctl restart ollama; }
|
||||||
|
trap start_service EXIT
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user