"docs/git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "5d65a0cf8c9a1fb755fd09ce098bcedb0c670d80"
Commit d294a11b authored by Michael Yang's avatar Michael Yang
Browse files

start service on exit instead of immediately

parent 5306b026
...@@ -92,7 +92,9 @@ EOF ...@@ -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
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment