From 8ca1337206b785507d7a4dac6d149abe1431a67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Canek=20Pel=C3=A1ez=20Vald=C3=A9s?= Date: Tue, 1 Sep 2020 11:51:17 -0500 Subject: [PATCH] Sleep at start of cycle. --- monitor-vpn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitor-vpn b/monitor-vpn index 72f8304..86cbf33 100644 --- a/monitor-vpn +++ b/monitor-vpn @@ -49,6 +49,7 @@ fi # This is a daemon while true; do + sleep 1 CONN=$(connectivity) if [ "${CONN}" != "full" ]; then continue @@ -57,5 +58,4 @@ while true; do if [ "${STATUS}" != "activated" ]; then up "${VPN_UUID}" fi - sleep 1 done -- GitLab