diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-08-05 14:24:02 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-08-05 14:24:02 +0200 |
commit | 4ba4b79cfd0bb4a8236bb7b7abb300f365be4c96 (patch) | |
tree | be150e9f5eab021dfecc373c55de617344201c2b | |
parent | e9a0eef898a7f24b8da3020746d49602b4f71fcc (diff) |
Fix output
-rwxr-xr-x | shutdown | 5 | ||||
-rwxr-xr-x | start | 6 |
2 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,5 @@ #!/bin/sh -pidof ollama | xargs -r kill -pidof qdrant | xargs -r kill +pg_ctl stop -D ~/projects/rag/data/postgres >/dev/null 2>&1 && + pidof ollama | xargs -r kill && + pidof qdrant | xargs -r kill @@ -1,10 +1,10 @@ #!/bin/sh -pg_ctl start -D ~/projects/rag/data/postgres -l ~/projects/rag/data/postgres/server.log +pg_ctl start -D ~/projects/rag/data/postgres -l ~/projects/rag/data/postgres/server.log >/dev/null 2>&1 pidof qdrant 1>/dev/null && echo "qdrant already running..." || ( cd ~/projects/rag/data/qdrant - qdrant & + qdrant >/dev/null 2>&1 & ) -pidof ollama 1>/dev/null && echo "ollama already running..." || ollama serve & +pidof ollama 1>/dev/null && echo "ollama already running..." || ollama serve >/dev/null 2>&1 & exit 0 |