replaced to the name of the process instead of the pid which not worked
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -29,7 +29,7 @@ while true; do
|
|||||||
echo "WireGuard keepalive ping failed ($fail_count/$MAX_FAILURES) to $WG_SERVER_IP via $IFACE"
|
echo "WireGuard keepalive ping failed ($fail_count/$MAX_FAILURES) to $WG_SERVER_IP via $IFACE"
|
||||||
if [ "$fail_count" -ge "$MAX_FAILURES" ]; then
|
if [ "$fail_count" -ge "$MAX_FAILURES" ]; then
|
||||||
echo "WireGuard connection is stuck after $MAX_FAILURES consecutive failures ... forcing container restart..."
|
echo "WireGuard connection is stuck after $MAX_FAILURES consecutive failures ... forcing container restart..."
|
||||||
exec kill -9 1
|
exec killall boringtun
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
sleep "$PING_INTERVAL"
|
sleep "$PING_INTERVAL"
|
||||||
|
|||||||
Reference in New Issue
Block a user