FS#19611 - [openvpn] initscript for more profiles

Attached to Project: Arch Linux
Opened by Christian Hesse (eworm) - Thursday, 27 May 2010, 18:18 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 13 June 2011, 13:19 GMT
Task Type Feature Request
Category Packages: Core
Status Closed
Assigned To Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I have several openvpn configs, but I do not want to start them all by default. I changed the initscript a bit, now you need to link /etc/rc.d/openvpn.$config to /etc/rc.d/openvpn. By starting /etc/rc.d/openvpn.$config you have full control which vpn to start.
The patch for the initscript is attached.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 13 June 2011, 13:19 GMT
Reason for closing:  Implemented
Additional comments about closing:  netcfg 2.5.5-1
Comment by Thomas Bächler (brain0) - Friday, 28 May 2010, 10:10 GMT
I do not like symlinking in /etc/rc.d/ for this purpose.

The logic is currently like this: All openvpn config files ending with .conf are autostarted, all others are not. Maybe this is a bit too implicit, as this is the second bug report about it.

Can you suggest a solution that only involves changing /etc/openvpn/, but not /etc/rc.d/?
Comment by Christian Hesse (eworm) - Friday, 28 May 2010, 10:40 GMT
It does not work without any changes in /etc/rc.d/ I think. To connect to a vpn I had to start the connection by running the openvpn command manually.

But I searched a bit and found netcfg-openvpn in AUR. That does exactly what I need (start *.conf with openvpn initscript, add netcfg configurations for /etc/openvpn/*.cfg) and I am perfectly happy with it so for. Feel free to close the task.
Comment by Thomas Bächler (brain0) - Friday, 28 May 2010, 10:46 GMT
Ah, now I understand. You want to use the init script also for those that are not autostarted. I will think about a solution here.

Also, it might be worth merging netcfg-openvpn into the default netcfg.
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 13 June 2011, 11:30 GMT
The openvpn support in netcfg was merged several months ago and released in version 2.5.5.

Loading...