Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(status): align process detection with start/stop using absolute main path

cyhhao218e461b0285
diff --git a/status.sh b/status.sh
index b8a171da9..1f9876e51 100755
--- a/status.sh
+++ b/status.sh
@@ -4,6 +4,7 @@
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PID_FILE="$SCRIPT_DIR/.bot.pid"
LOG_DIR="$SCRIPT_DIR/logs"
+MAIN_PATH="$SCRIPT_DIR/main.py"
echo "Claude Proxy Status"
echo "==================="
@@ -13,11 +14,9 @@ if [ -f "$PID_FILE" ]; then
# Check if the process exists
if ps -p "$PID" > /dev/null 2>&1; then
- # Verify it's actually our python process
+ # Verify it's our python process by absolute main.py path
PROCESS_CMD=$(ps -p "$PID" -o command= 2>/dev/null || echo "")
- PROCESS_CWD=$(lsof -p "$PID" -a -d cwd -Fn 2>/dev/null | grep '^n' | cut -c2- || echo "")
-
- if [[ "$PROCESS_CMD" == *"python"*"main.py"* ]] && [[ "$PROCESS_CWD" == "$SCRIPT_DIR" ]]; then
+ if [[ "$PROCESS_CMD" == *"$MAIN_PATH"* ]]; then
echo "Status: RUNNING"
echo "PID: $PID"