bundles/wireguard: less spammy output for wg_health_check
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
All checks were successful
kunsi/bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
c04ad04c75
commit
ee86b5a121
1 changed files with 3 additions and 2 deletions
|
@ -13,8 +13,9 @@ everything_up=1
|
|||
|
||||
% for peer, ip in sorted(peers.items()):
|
||||
# ${peer}
|
||||
if ! /usr/bin/ping -c 4 ${ip}
|
||||
if ! /usr/bin/ping -c 4 ${ip} >/dev/null
|
||||
then
|
||||
echo "${peer} was not reachable!" >&2
|
||||
everything_up=0
|
||||
fi
|
||||
|
||||
|
@ -31,7 +32,7 @@ last_reached="$(cat /var/tmp/wg_all_reached)"
|
|||
|
||||
if [[ "$last_reached" -lt "$five_min_ago" ]]
|
||||
then
|
||||
echo "RESTART"
|
||||
echo "RESTART" >&2
|
||||
|
||||
systemctl restart systemd-networkd
|
||||
|
||||
|
|
Loading…
Reference in a new issue