diff --git a/secours/check-vpn-from-ovh b/secours/check-vpn-from-ovh index 6d2415eb23910e6d8583774b9348dffe2559ab2c..409e0f712486d95783380a2be48053d7bd491d85 100755 --- a/secours/check-vpn-from-ovh +++ b/secours/check-vpn-from-ovh @@ -10,7 +10,7 @@ if [ "$(hostname)" != "soyouz" ]; then fi vpn_is_running () { - if systemctl is-active openvpn@$1 &> /dev/null + if systemctl is-active openvpn-client@$1 &> /dev/null then return 0 else return 1 fi @@ -23,7 +23,7 @@ vpn_restart () { then touch /tmp/vpn_mail_sent # On utilise restart pour être sûr de ne pas avoir de problème avec un VPN qui traîne - if systemctl restart openvpn@$1 + if systemctl restart openvpn-client@$1 then echo "Lancement du vpn $(hostname)<->$2 reussi "'!' exit 0 @@ -32,7 +32,7 @@ vpn_restart () { exit 1 fi else - systemctl restart openvpn@$1 &> /dev/null + systemctl restart openvpn-client@$1 &> /dev/null fi }