Correction du script de vérification du vpn
darcs-hash:20080409105204-ffbb2-062dc6be58325c133b91fd24e80c17f062534424.gz
This commit is contained in:
parent
f344adaba3
commit
16e743664d
1 changed files with 2 additions and 2 deletions
|
@ -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 () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue