make ollama-* actions user-independent
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
kill $(cat /tmp/ollama.pid)
|
kill $(cat /tmp/ollama-$USER.pid)
|
||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
tail -f /tmp/ollama.log
|
tail -f /tmp/ollama-$USER.log
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ollama serve &> /tmp/ollama.log &
|
ollama serve &> /tmp/ollama-$USER.log &
|
||||||
OLLAMA_PID=$!
|
OLLAMA_PID=$!
|
||||||
echo $OLLAMA_PID > /tmp/ollama.pid
|
echo $OLLAMA_PID > /tmp/ollama-$USER.pid
|
||||||
Reference in New Issue
Block a user