From b3e4a45996ac6a0ede7f84ad166f5ac42ac6b7dc Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sun, 4 May 2025 23:59:00 -0400 Subject: [PATCH] make ollama-* actions user-independent --- .../arch-toolbox-supporting-files/ollama-kill | 2 +- .../arch-toolbox-supporting-files/ollama-log | 2 +- .../arch-toolbox-supporting-files/ollama-serve | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/active/software_distoolbox/arch-toolbox-supporting-files/ollama-kill b/active/software_distoolbox/arch-toolbox-supporting-files/ollama-kill index e9c2e59..a644eeb 100644 --- a/active/software_distoolbox/arch-toolbox-supporting-files/ollama-kill +++ b/active/software_distoolbox/arch-toolbox-supporting-files/ollama-kill @@ -1,3 +1,3 @@ #!/bin/bash -kill $(cat /tmp/ollama.pid) \ No newline at end of file +kill $(cat /tmp/ollama-$USER.pid) \ No newline at end of file diff --git a/active/software_distoolbox/arch-toolbox-supporting-files/ollama-log b/active/software_distoolbox/arch-toolbox-supporting-files/ollama-log index 06a44b6..b0e2e8f 100644 --- a/active/software_distoolbox/arch-toolbox-supporting-files/ollama-log +++ b/active/software_distoolbox/arch-toolbox-supporting-files/ollama-log @@ -1,3 +1,3 @@ #!/bin/bash -tail -f /tmp/ollama.log \ No newline at end of file +tail -f /tmp/ollama-$USER.log \ No newline at end of file diff --git a/active/software_distoolbox/arch-toolbox-supporting-files/ollama-serve b/active/software_distoolbox/arch-toolbox-supporting-files/ollama-serve index c6a34c1..f27a788 100644 --- a/active/software_distoolbox/arch-toolbox-supporting-files/ollama-serve +++ b/active/software_distoolbox/arch-toolbox-supporting-files/ollama-serve @@ -1,5 +1,5 @@ #!/bin/bash -ollama serve &> /tmp/ollama.log & +ollama serve &> /tmp/ollama-$USER.log & OLLAMA_PID=$! -echo $OLLAMA_PID > /tmp/ollama.pid \ No newline at end of file +echo $OLLAMA_PID > /tmp/ollama-$USER.pid \ No newline at end of file