start service on exit instead of immediately

This commit is contained in:
Michael Yang 2023-09-25 16:11:21 -07:00
parent 5306b0269d
commit d294a11bc9

View file

@ -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
}