Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107831 - openvpn initscript enhancement to only work with existing config directories
Summary: openvpn initscript enhancement to only work with existing config directories
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-01 15:59 UTC by Arturo Alberto Busleiman
Modified: 2005-10-13 07:14 UTC (History)
0 users

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


Attachments
Patch that enhances the openvpn initscript with the proposed modifications (openvpn.initd.patch,929 bytes, patch)
2005-10-01 16:01 UTC, Arturo Alberto Busleiman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arturo Alberto Busleiman 2005-10-01 15:59:03 UTC
This can probably by enhanced more, but I was sick of openvpn saying "babla
expected to be a directory containing a local.conf". If those were directories,
empty or without a local.conf, I'd be happy, but saying that for FILES is
definitely disturbing me. Hope this simple patch is useful or gives a good idea
at least. It replaces the "for VPN in *" for a "dirs = `some_find_code` and
iterates it instead of *.


Reproducible: Always
Steps to Reproduce:
1. /etc/init.d/openvpn start

Actual Results:  
Prints warning regarding files instead of directories.


Expected Results:  
Should check only directories.
Comment 1 Arturo Alberto Busleiman 2005-10-01 16:01:39 UTC
Created attachment 69673 [details, diff]
Patch that enhances the openvpn initscript with the proposed modifications

Replaces the "for VPN in *" line to iterate thorugh a list of directories
provided by a `find|cut|xargs` thingy.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-10-13 07:14:50 UTC
Fixed in 2.0.2-r1

I've reverted the behavior to standard openvpn - basically /etc/openvpn/*.conf
The only caveat is that you need to symlink extra vpns to openvpn like so

/etc/openvpn/openvpn.conf -> /etc/init.d/openvpn
/etc/openvpn/foo.conf -> /etc/init.d/openvpn.foo
/etc/openvpn/bar.conf -> /etc/init.d/openvpn.bar

Here's how to link them
cd /etc/init.d
ln -s openvpn openvpn.foo
ln -s openvpn openvpn.bar