I want to run my openvpn as systemd service. This tutorial tells me to use openvpn@.service template for that:
https://fedoraproject.org/wiki/Openvpn#Setting_up_a_Linux_OpenVPN_client
ln -s /lib/systemd/system/openvpn@.service /etc/systemd/system/openvpn@MyClient.service
I can do that but before trying I wonder that in the same folder there is also an openvpn-client@.service file, which is not even mentioned in the tutorial. I looked into both but my knowledge of systemd is limited. From what I can see, both would work running an openvpn client, just openvpn-cliemt@.service would start it with --daemon ovpn-%i. Wouldn't it be better to have it running as a daemon? Is the tutorial just outdated and not covering this .service file?
openvpn@server
andopenvpn-server@server
services? I can see that they both exist when using commandssudo service openvpn@server status
andsudo service openvpn-server@server status
. However onlyopenvpn-server@server
is used. – baptx Mar 22 '20 at 19:13