Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| gentoo:wireguard [2026/03/16 09:03] – [Watchdog] willy | gentoo:wireguard [2026/03/16 15:49] (current) – willy | ||
|---|---|---|---|
| Line 106: | Line 106: | ||
| if ! ping -q -c ${PING_COUNT} -W ${PING_TIMEOUT} ${PING_HOST} >/ | if ! ping -q -c ${PING_COUNT} -W ${PING_TIMEOUT} ${PING_HOST} >/ | ||
| fail_count=$((fail_count + 1)) | fail_count=$((fail_count + 1)) | ||
| - | | + | |
| 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 [ " | if [ " | ||
| - | | + | |
| restart_service | restart_service | ||
| fail_count=0 | fail_count=0 | ||