wp.rauchholz
When trying to start openvpn, I misspelled the name of the config file. Instead of wo-lar_srv01 I keyed-in wo/lar_srv01
I corrected and to wo-lar_srv01 and the server is working fin. But when running
systemctl -l status I get the message that wo/lar_srv01 is started. How can I fix this?
● openvpn@wo-lar_srv01.service - OpenVPN Robust And Highly Flexible Tunneling Application On wo/lar_srv01
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-02-15 14:43:13 CET; 18min ago
Main PID: 29579 (openvpn)
Status: "Initialization Sequence Completed"
CGroup: /system.slice/system-openvpn.slice/openvpn@wo-lar_srv01.service
└─29579 /usr/sbin/openvpn --cd /etc/openvpn/ --config wo-lar_srv01.conf
Feb 15 14:43:13 home systemd[1]: Starting OpenVPN Robust And Highly Flexible Tunneling Application On wo/lar_srv01...
Feb 15 14:43:13 home systemd[1]: Started OpenVPN Robust And Highly Flexible Tunneling Application On wo/lar_srv01.
Also the /var/log/messages get loaded constantly with error messages when the server is up and running:
Feb 15 15:04:36 home systemd: Failed to start OpenVPN service for wo/lar_srv01.
Feb 15 15:04:36 home systemd: Unit openvpn-server@wo-lar_srv01.service entered failed state.
Feb 15 15:04:36 home systemd: openvpn-server@wo-lar_srv01.service failed.
dazo
This sounds more like a systemd issue ... I would try to get their attention to this issue.
The reasons for this being a systemd issue,is that we use a systemd feature in the unit files (which is being made available using the '@' sign in the unit filename) ... this allows the unit file to extract the contents after the '@' with %I and %i ... where the former one is raw while the otherone is escaped.
For more details on the escaping, see 'man systemd-escape' ... that's also a tool which might help you figure out how this '/' is handled. By default, I believe it is replaced with a '-'. But all this are workarounds. Systemd itself should behave more consistently across the various places you use the config reference.