From f6f6f791764f12f7c76a847c472f470f0e3d5071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 13 Nov 2017 23:57:28 +0100 Subject: [PATCH] =?UTF-8?q?On=20modifie=20le=20service=20=C3=A0=20appeler?= =?UTF-8?q?=20pour=20OpenVPN.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avec le passage à Stretch, les services OpenVPN sont splittés autrement. On modifie donc le script de vérification de connection depuis OVH. --- secours/check-vpn-from-ovh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/secours/check-vpn-from-ovh b/secours/check-vpn-from-ovh index 6d2415eb..409e0f71 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 } -- GitLab