From 394597c186f6f840b9e44f8aa620a83504045333 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Wed, 2 Sep 2015 10:31:34 +0200 Subject: [PATCH] Evite de polluer cron avec active toutes les minutes --- secours/check-vpn-from-ovh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secours/check-vpn-from-ovh b/secours/check-vpn-from-ovh index 8c7563c6..980f5278 100755 --- a/secours/check-vpn-from-ovh +++ b/secours/check-vpn-from-ovh @@ -4,7 +4,7 @@ MAIN_ROUTER=odlyd BACK_ROUTER=freebox vpn_is_running () { - if systemctl is-active openvpn@$1 + if systemctl is-active openvpn@$1 &> /dev/null then return 0 else return 1 fi