From 16e743664d4372ee3918460b356fc9e0d8a0eca4 Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Wed, 9 Apr 2008 12:52:04 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20du=20script=20de=20v=C3=A9rificati?= =?UTF-8?q?on=20du=20vpn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20080409105204-ffbb2-062dc6be58325c133b91fd24e80c17f062534424.gz --- secours/check-vpn-from-ovh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/secours/check-vpn-from-ovh b/secours/check-vpn-from-ovh index 2a49e1b1..228815a5 100755 --- a/secours/check-vpn-from-ovh +++ b/secours/check-vpn-from-ovh @@ -2,8 +2,8 @@ vpn_is_running () { local pid_file - pid_file=/var/run/openvpn.${pid_file}.pid - [[ ! -f $pid_file || ! -d /proc/$(< $pid_file) ]] + pid_file=/var/run/openvpn.$1.pid + [[ ! -f $pid_file || ! -d /proc/$(< $pid_file) ]] && return 1 || return 0 } vpn_start () {