FS#33054 - [openvpn] systemd .service file: wrong argument order

Attached to Project: Arch Linux
Opened by PyroPeter (pyropeter) - Tuesday, 11 December 2012, 21:44 GMT
Last edited by Thomas Bächler (brain0) - Saturday, 09 February 2013, 14:56 GMT
Task Type Bug Report
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 3
Private No


The openvpn .service file uses the following command line:

ExecStart=/usr/sbin/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --cd /etc/openvpn

But the --cd argument should be the first argument:

ExecStart=/usr/sbin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i

If --cd is added after --config, you can't use the 'cd' directive in the config file (at least not with a relative path).
This task depends upon

Closed by  Thomas Bächler (brain0)
Saturday, 09 February 2013, 14:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  openvpn 2.3.0-2
Comment by PyroPeter (pyropeter) - Friday, 01 February 2013, 09:05 GMT
I attached a patch in case my description of the fix was to vague.
I should probably add that the argument order I'm proposing is the one also used by the old ArchLinux initscript and Ubuntu.
Comment by Thomas Bächler (brain0) - Friday, 01 February 2013, 09:10 GMT
Oh, I forgot to add this when updating to 2.3. Will add this next time (there's another bug to fix in 2.3).