#!/bin/bash export LANG=C # 测试用 socket 路径(不碰真实部署) export APP_SOCKET=/tmp/goddhv_test.sock pkill -f goddhv_main 2>/dev/null rm -f /tmp/goddhv_test.sock nohup /tmp/goddhv_main > /tmp/goddhv_main.log 2>&1 & sleep 1 echo "started, pid=$!" ls -la /tmp/goddhv_test.sock 2>/dev/null cat /tmp/goddhv_main.log 2>/dev/null | head -5