Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 70547 Details for
Bug 108945
openvpn init script broken
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
openvpn symlink init script
openvpn (text/plain), 1001 bytes, created by
Roy Marples (RETIRED)
on 2005-10-13 03:42:11 UTC
(
hide
)
Description:
openvpn symlink init script
Filename:
MIME Type:
Creator:
Roy Marples (RETIRED)
Created:
2005-10-13 03:42:11 UTC
Size:
1001 bytes
patch
obsolete
>#!/sbin/runscript > >VPNDIR="/etc/openvpn" >VPN="${myservice##*.}" >if [[ -n ${VPN} && ${myservice} != "openvpn" ]]; then > VPNDIR="${VPNDIR}/${VPN}" > VPNPID="/var/run/openvpn.${VPN}.pid" >else > VPNPID="/var/run/openvpn.pid" >fi > >VPNCONF="${VPNDIR}/local.conf" > >depend() { > need net >} > >checktundevice() { > 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 > > ebegin "Starting ${myservice}" > > if [[ ! -e "${VPNCONF}" ]]; then > eend 1 "${VPNCONF} does not exist" > return 1 > fi > > start-stop-daemon --start --exec /usr/sbin/openvpn --pidfile "${VPNPID}" \ > -- --config "${VPNCONF}" --writepid "${VPNPID}" \ > --daemon --cd "${VPNDIR}" > eend $? "Check your logs to see why startup failed" >} > >stop() { > ebegin "Stopping ${myservice}" > start-stop-daemon --stop -exec /usr/sbin/openvpn --pidfile "${VPNPID}" > eend $? >} > ># 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 108945
:
70540
| 70547