From e9a0eef898a7f24b8da3020746d49602b4f71fcc Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 5 Aug 2024 14:15:34 +0200 Subject: Add start and shutdown scripts --- start | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 start (limited to 'start') diff --git a/start b/start new file mode 100755 index 0000000..bf93959 --- /dev/null +++ b/start @@ -0,0 +1,10 @@ +#!/bin/sh + +pg_ctl start -D ~/projects/rag/data/postgres -l ~/projects/rag/data/postgres/server.log + +pidof qdrant 1>/dev/null && echo "qdrant already running..." || ( + cd ~/projects/rag/data/qdrant + qdrant & +) +pidof ollama 1>/dev/null && echo "ollama already running..." || ollama serve & +exit 0 -- cgit v1.2.3-70-g09d2