Am 22.04.2013 22:09, schrieb Christian Boltz:
Hello,
Am Donnerstag, 4. April 2013 schrieb Cristian Rodríguez:
On 04/04/2013 07:49 AM, Jiri Slaby wrote:
after updating openvpn in factory, it doesn't work at all. You install openvpn.service, but use %i in the service file. How was this supposed to work?
It does not work, because the naming is broken
You need openvpn@.service, IIUC. Did you test it at all?
Yes, here is a better one..
Did someone actually fix this in the package?
I'm CC'ing Marius (bugowner of openVPN), and will leave the service file as a fullquote below.
cat openvpn@.service
[Unit] Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I After=network.target
[Service] ExecStart=/usr/sbin/openvpn --suppress-timestamps --fast-io --mlock --cd /etc/openvpn/ --config %i.conf ExecReload=/bin/kill -HUP $MAINPID PrivateTmp=true
[Install] WantedBy=multi-user.target
systemctl (enable|start|disable) openvpn@yourconfigfilebasename.service
Yes, it looks better. I think --suppress-timestamps makes sense,
--mlock should be fine, but --fast-io is --proto udp specific
and experimental.
I'd let the user set the --fast-io option in the config file...
[Service]
ExecStart=/usr/sbin/openvpn --suppress-timestamps --mlock --cd
/etc/openvpn/ --config %i.conf
ExecReload=/bin/kill -HUP $MAINPID
PrivateTmp=true
Fixed in my local checkout & testing it.
Gruesse / Regards,
Marius Tomaschewski