Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
d294a11b
Commit
d294a11b
authored
Sep 25, 2023
by
Michael Yang
Browse files
start service on exit instead of immediately
parent
5306b026
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
scripts/install.sh
scripts/install.sh
+3
-1
No files found.
scripts/install.sh
View file @
d294a11b
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment