Plus utilisé
darcs-hash:20080304125649-af139-8f63b6c002587991c5d9282bef29e2f59ad2d96d.gz
This commit is contained in:
parent
81be789a47
commit
d91249d6ca
1 changed files with 0 additions and 16 deletions
|
@ -1,16 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
VPN_NAME=ovh
|
||||
PID_FILE=/var/run/openvpn.${VPN_NAME}.pid
|
||||
|
||||
if [[ ! -f $PID_FILE || ! -d /proc/$(< $PID_FILE) ]] && ! fping -q ovh.adm.crans.org; then
|
||||
if fping -q ovh.crans.org; then
|
||||
if /etc/init.d/openvpn start ${VPN_NAME} > /dev/null; then
|
||||
echo 'Lancement du tunnel vers OVH reussi !'
|
||||
exit 0
|
||||
else
|
||||
echo 'Echec du lancement du tunnel vers OVH !'
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue