Correction du script de vérification du vpn

darcs-hash:20080409105204-ffbb2-062dc6be58325c133b91fd24e80c17f062534424.gz
This commit is contained in:
Nicolas Dandrimont 2008-04-09 12:52:04 +02:00
parent f344adaba3
commit 16e743664d

View file

@ -2,8 +2,8 @@
vpn_is_running () { vpn_is_running () {
local pid_file local pid_file
pid_file=/var/run/openvpn.${pid_file}.pid pid_file=/var/run/openvpn.$1.pid
[[ ! -f $pid_file || ! -d /proc/$(< $pid_file) ]] [[ ! -f $pid_file || ! -d /proc/$(< $pid_file) ]] && return 1 || return 0
} }
vpn_start () { vpn_start () {