Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70732 Details for
Bug 109363
/etc/init.d/openvpn start() too restrictive
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init.d file that have the workaround as described in the bug note
openvpn (text/plain), 1.15 KB, created by
Chester Chee
on 2005-10-15 07:24:22 UTC
(
hide
)
Description:
init.d file that have the workaround as described in the bug note
Filename:
MIME Type:
Creator:
Chester Chee
Created:
2005-10-15 07:24:22 UTC
Size:
1.15 KB
patch
obsolete
>#!/sbin/runscript > >VPNDIR="/etc/openvpn" >VPN="${myservice##*.}" >VPNCONFS=`ls ${VPNDIR}/*.conf` > >depend() { > need net >} > >checktundevice() { > if [[ ! -e /dev/net/tun ]]; then > if ! modprobe tun ; then > eerror "TUN/TAP support is not available in this kernel" > return 1 > fi > fi > if [[ -h /dev/net/tun && -c /dev/misc/net/tun ]]; then > ebegin "Detected broken /dev/net/tun symlink, fixing..." > rm -f /dev/net/tun > ln -s /dev/misc/net/tun /dev/net/tun > eend $? > fi >} > >start() { > checktundevice || return 1 > for vpn in ${VPNCONFS} > do > ebegin "Starting ${myservice} for `basename ${vpn} .conf`" > > if [[ ! -e "${vpn}" ]]; then > eend 1 "${vpn} does not exist" > return 1 > fi > > VPNPID="/var/run/openvpn.`basename ${vpn} .conf`.pid" > start-stop-daemon --start --exec /usr/sbin/openvpn --pidfile "${VPNPID}" \ > -- --config "${vpn}" --writepid "${VPNPID}" \ > --daemon > eend $? "Check your logs to see why startup failed" > done >} > >stop() { > for vpn in ${VPNCONFS} > do > VPNPID="/var/run/openvpn.`basename ${vpn} .conf`.pid" > ebegin "Stopping ${myservice}" > start-stop-daemon --stop --exec /usr/sbin/openvpn --pidfile "${VPNPID}" > eend $? > done >} > ># vim: ts=4
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 Raw
Actions:
View
Attachments on
bug 109363
: 70732 |
70951
|
70983