Some checks are pending
build-with-all-capacity / build-and-push-image (push) Waiting to run
build-with-audio-assistant / build-and-push-image (push) Waiting to run
build-with-chatglm / build-and-push-image (push) Waiting to run
build-with-latex-arm / build-and-push-image (push) Waiting to run
build-with-latex / build-and-push-image (push) Waiting to run
build-without-local-llms / build-and-push-image (push) Waiting to run
12 lines
389 B
Bash
12 lines
389 B
Bash
#!/bin/bash
|
|
GPT_COMMAND="/home/van/.env/python3.12-venv/bin/python main.py"
|
|
LOG_FILE="/home/van/project/gpt/gpt.log"
|
|
GPT_PROCESS=$(ps aux | grep "$/home/van/.env/python3.12-venv/bin/python main.py" | grep -v grep)
|
|
if [ -n "$GPT_PROCESS" ]; then
|
|
echo "gpt is running..."
|
|
else
|
|
cd /home/van/project/gpt/
|
|
$GPT_COMMAND > "$LOG_FILE" 2>&1 &
|
|
echo "gpt start successfully. Log file: $LOG_FILE"
|
|
fi
|