Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 63079 Details for
Bug 98420
openvpn initsript doesn't wait until the vpn is completly up
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
new and tested version of the patch without bugs
openvpn-initscript.patch (text/plain), 1.18 KB, created by
Nikolas Garofil
on 2005-07-10 10:12:33 UTC
(
hide
)
Description:
new and tested version of the patch without bugs
Filename:
MIME Type:
Creator:
Nikolas Garofil
Created:
2005-07-10 10:12:33 UTC
Size:
1.18 KB
patch
obsolete
>*** /etc/init.d/openvpn.orig 2005-07-10 18:26:41.000000000 +0200 >--- /etc/init.d/openvpn 2005-07-10 18:38:08.000000000 +0200 >*************** >*** 34,42 **** >--- 34,59 ---- > --startas /usr/sbin/openvpn -- --config ${VPN}/local.conf \ > --writepid /var/run/openvpn-${VPN}.pid \ > --daemon --cd ${VPN} >+ COMPLETELYUP=1 #not tested so not completly up > eend $? > else > einfo "Connection ${VPN} already online. Skipping..." >+ COMPLETELYUP=0 #already up and tested >+ fi >+ >+ CONNECTIONTESTS=0 #this var contains the number of times the connection has been tested >+ while [[ ${COMPLETELYUP} -gt 0 ]] && [[ ${CONNECTIONTESTS} -lt 5 ]]; do # after 5 tests I give up >+ if [ -f ${VPN}/onlinecheck ]; then >+ ping -c 3 `head -n 1 ${VPN}/onlinecheck` >& /dev/null >+ COMPLETELYUP=$? >+ CONNECTIONTESTS=`expr ${CONNECTIONTEST} + 1` >+ else >+ COMPLETELYUP=`true` >+ fi >+ done >+ if [[ ${COMPLETELYUP} -gt 0 ]]; then >+ ewarn "Openvpn started without problems but the host in" >+ ewarn "${VPN}/onlinecheck is unavailable." > fi > else > ewarn "Expected ${VPNDIR}/${VPN} to be a directory containing a local.conf."
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 98420
:
62978
|
63079
|
63607
|
63640