Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70983 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]
Updated init.d file to address the stop issue mentioned by Roy
openvpn (text/plain), 1.18 KB, created by
Chester Chee
on 2005-10-18 17:22:47 UTC
(
hide
)
Description:
Updated init.d file to address the stop issue mentioned by Roy
Filename:
MIME Type:
Creator:
Chester Chee
Created:
2005-10-18 17:22:47 UTC
Size:
1.18 KB
patch
obsolete
>#!/sbin/runscript > >VPNDIR="/etc/openvpn" >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 > VPN=`basename ${vpn} .conf` > ebegin "Starting ${myservice} for ${VPN}" > > if [[ ! -e "${vpn}" ]]; then > eend 1 "${vpn} does not exist" > return 1 > fi > > VPNPID="/var/run/openvpn.${VPN}.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() { > VPNPIDS=`ls /var/run/openvpn.*.pid` > for vpnpid in ${VPNPIDS} > do > VPN=`basename ${vpnpid} .pid | sed -e 's/openvpn\.//g'` > ebegin "Stopping ${myservice} for ${VPN}" > 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