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.
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.
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