#!/bin/bash export LANG=C export PATH=$PATH:/usr/local/go/bin pkill -f goddhv_main 2>/dev/null rm -f /tmp/goddhv_test.sock APP_SOCKET=/tmp/goddhv_test.sock nohup /tmp/goddhv_main > /tmp/goddhv_main.log 2>&1 & PID=$! sleep 1.5 echo "server pid=$PID" ls -la /tmp/goddhv_test.sock 2>/dev/null && echo "SOCKET_READY" echo "=== log ===" cat /tmp/goddhv_main.log echo "=== client test ===" python3 /tmp/test_client.py pkill -f goddhv_main 2>/dev/null echo "done"