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(start): align process match with stop.sh using absolute path; remove lsof CWD check

cyhhaoef9513bbcf08
diff --git a/start.sh b/start.sh
index 81af621fd..06f8dd766 100755
--- a/start.sh
+++ b/start.sh
@@ -21,11 +21,9 @@ kill_current_instance() {
# Check if the process exists and is our process
if ps -p "$OLD_PID" > /dev/null 2>&1; then
- # Verify it's actually our python process in the correct directory
+ # Verify it's our python process by absolute main.py path
PROCESS_CMD=$(ps -p "$OLD_PID" -o command= 2>/dev/null || echo "")
- PROCESS_CWD=$(lsof -p "$OLD_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 "Found running instance (PID: $OLD_PID), stopping..."
kill -TERM "$OLD_PID" 2>/dev/null