replaced to the name of the process instead of the pid which not worked
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2026-05-08 07:24:23 +02:00
parent 38a33ac7b5
commit 66c87e7266
+1 -1
View File
@@ -29,7 +29,7 @@ while true; do
echo "WireGuard keepalive ping failed ($fail_count/$MAX_FAILURES) to $WG_SERVER_IP via $IFACE"
if [ "$fail_count" -ge "$MAX_FAILURES" ]; then
echo "WireGuard connection is stuck after $MAX_FAILURES consecutive failures ... forcing container restart..."
exec kill -9 1
exec killall boringtun
fi
fi
sleep "$PING_INTERVAL"