User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
gentoo:wireguard [2026/03/16 09:03] – [Watchdog] willygentoo:wireguard [2026/03/16 15:49] (current) willy
Line 106: Line 106:
         if ! ping -q -c ${PING_COUNT} -W ${PING_TIMEOUT} ${PING_HOST} >/dev/null 2>&1; then         if ! ping -q -c ${PING_COUNT} -W ${PING_TIMEOUT} ${PING_HOST} >/dev/null 2>&1; then
             fail_count=$((fail_count + 1))             fail_count=$((fail_count + 1))
-            elog "Ping to ${PING_HOST} failed (attempt ${fail_count})"+            echo "Ping to ${PING_HOST} failed (attempt ${fail_count})"
         else         else
             fail_count=0             fail_count=0
Line 113: Line 113:
         # If we hit the threshold, restart         # If we hit the threshold, restart
         if [ "${fail_count}" -ge "${FAIL_COUNT_LIMIT}" ]; then         if [ "${fail_count}" -ge "${FAIL_COUNT_LIMIT}" ]; then
-            elog "Consecutive failures reached ${FAIL_COUNT_LIMIT}: restarting ${SERVICES}"+            echo "Consecutive failures reached ${FAIL_COUNT_LIMIT}: restarting ${SERVICES}"
             restart_service             restart_service
             fail_count=0             fail_count=0