summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-08-05 14:24:02 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-08-05 14:24:02 +0200
commit4ba4b79cfd0bb4a8236bb7b7abb300f365be4c96 (patch)
treebe150e9f5eab021dfecc373c55de617344201c2b
parente9a0eef898a7f24b8da3020746d49602b4f71fcc (diff)
Fix output
-rwxr-xr-xshutdown5
-rwxr-xr-xstart6
2 files changed, 6 insertions, 5 deletions
diff --git a/shutdown b/shutdown
index 613b645..2702073 100755
--- a/shutdown
+++ b/shutdown
@@ -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
diff --git a/start b/start
index bf93959..d484e28 100755
--- a/start
+++ b/start
@@ -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