Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 59346 Details for
Bug 92369
openvpn: check if network is already accessible
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
diff for /etc/init.d/openvpn init script
openvpn.diff (text/plain), 790 bytes, created by
Christian Hesse
on 2005-05-19 22:46:17 UTC
(
hide
)
Description:
diff for /etc/init.d/openvpn init script
Filename:
MIME Type:
Creator:
Christian Hesse
Created:
2005-05-19 22:46:17 UTC
Size:
790 bytes
patch
obsolete
>--- /etc/init.d/openvpn 2005-05-20 07:41:57.000000000 +0200 >+++ /etc/init.d/openvpn 2005-05-20 07:14:41.089915000 +0200 >@@ -59,12 +59,25 @@ > if [ -f "$bn.sh" ]; then > . $bn.sh > fi >- rm -f $piddir/$bn.pid >- $openvpn --daemon openvpn-$bn --writepid $piddir/$bn.pid --config $c --cd $work >- if [ $? = 0 ]; then >- successes=1 >+ >+ if [ -f $bn.online ]; then >+ fping -r 3 `cat $bn.online` &> /dev/null >+ else >+ false >+ fi >+ >+ if [ $? -gt 0 ]; then >+ einfo "Starting connection $bn" >+ rm -f $piddir/$bn.pid >+ $openvpn --daemon openvpn-$bn --writepid $piddir/$bn.pid --config $c --cd $work >+ if [ $? = 0 ]; then >+ successes=1 >+ else >+ errors=1 >+ fi > else >- errors=1 >+ ewarn "Connection $bn is already online" >+ successes=1 > fi > done >
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 92369
: 59346