Difference between [email protected] and [email protected]?

user6329530

I want to run my openvpn as systemd service. This tutorial tells me to use [email protected] template for that:

https://fedoraproject.org/wiki/Openvpn#Setting_up_a_Linux_OpenVPN_client

 ln -s /lib/systemd/system/[email protected] /etc/systemd/system/[email protected]

I can do that but before trying I wonder that in the same folder there is also an [email protected] 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 [email protected] 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?

jasonwryan

From 2.4.0, configuration moved to subdirectories: /etc/openvpn/{client,server} and the corresponding systemd units were changed from the generic [email protected] to [email protected] and [email protected].

As the changelog describes it:

OpenVPN now ships with more up-to-date systemd unit files which take advantage of the improved service management as well as some hardening steps. The configuration files are picked up from the /etc/openvpn/server/ and /etc/openvpn/client/ directories (depending on unit file). This also avoids these new unit files and how they work to collide with older pre-existing unit files.

So it appears the Fedora wiki is out-of-date.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Difference between "sudo systemctl disable [email protected]" and "sudo systemctl disable openvpn"

How to start the OpenVPN client service on Ubuntu 15.04

OpenVPN server service fails on start

OpenVPN service is not working on Ubuntu MATE

Restart OpenVPN Service Without a Password

Difference between web client and web service?

How does the OpenVPN service start connections by default?

OpenVPN server on Kubernetes cluster / DNS and Service resolution

Use service or systemctl to control openvpn daemon on boot?

OpenVPN and Asterisk - Ekiga or Empathy is unable to register the service

Use OpenVPN only for one application/service

Difference between a process and service?

Difference between service and factory

difference between Kubeproxy and service

OpenVPN - SSH into OpenVPN client from OpenVPN server

Difference between native and guest service with Service Fabric

What is the difference between "service restart" and "service reload"

Difference between service off and service stop?

Difference between Repository and Service Layer?

What is the difference between an IntentService and a Service?

NativeScript: Difference between a class and a service?

Difference between Application and Service in Dropwizard

Difference between kunernetes Service and Ingress

difference between ports and service ports?

Difference between Kubernetes and Service Fabric

Difference between web service and website

Difference between Systemctl and service command

Difference between systemctl and service commands

Difference between Docker container and service