Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117027 - OpenVPN configuration file error
Summary: OpenVPN configuration file error
Status: RESOLVED DUPLICATE of bug 117111
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-28 13:50 UTC by Jordi Yeh
Modified: 2005-12-29 11:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jordi Yeh 2005-12-28 13:50:28 UTC
Options error: In [CMD-LINE]:1: Error opening configuration file:

Applying the following patch solved the error opening configuration file.

An alternative would be to fix the -cd ${VPN} to -cd ${VPNDIR} instead, but it did not work for me.


diff -u /etc/init.d/openvpn /usr/portage/net-misc/openvpn/files/openvpn
--- /etc/init.d/openvpn 2005-12-28 16:39:10.000000000 -0500
+++ /usr/portage/net-misc/openvpn/files/openvpn 2005-05-30 09:35:53.000000000 -0400
@@ -31,7 +31,7 @@
                        if [ $? -gt 0 ]; then
                                ebegin "Starting openvpn for ${VPN}"
                                        start-stop-daemon --start --pidfile /var/run/openvpn-${VPN}.pid \
-                                                         --startas /usr/sbin/openvpn -- --config ${VPNDIR}/${VPN}/local.conf \
+                                                         --startas /usr/sbin/openvpn -- --config ${VPN}/local.conf \
                                                                                        --writepid /var/run/openvpn-${VPN}.pid \
                                                                                        --daemon --cd ${VPN}
                                eend $?
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-12-29 11:19:24 UTC
Or just use the current ~ARCH version.

I've opened a new bug asking for it to be marked stable.

*** This bug has been marked as a duplicate of 117111 ***