Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#37059 - [openvpn] add PIDFile to openvpn@.service
Attached to Project:
Arch Linux
Opened by Fabian Stegemann (zetaron) - Wednesday, 25 September 2013, 17:46 GMT
Last edited by Thomas Bächler (brain0) - Saturday, 03 May 2014, 07:08 GMT
Opened by Fabian Stegemann (zetaron) - Wednesday, 25 September 2013, 17:46 GMT
Last edited by Thomas Bächler (brain0) - Saturday, 03 May 2014, 07:08 GMT
|
DetailsDescription:
It would be nice, if the openvpn systemd service could create a pid file. Additional info: * package version(s): 2.3.2-1 I attached a .service file, which does the magic. |
This task depends upon
openvpn@.service
In my particular case i had to detect if openvpn is running and if it's in a specific mode (client/server).
The easiest way to do so is to check if the pid file exists in /run.
Therefore my intention was to suggest the extension of the service file to support pid file creation.
systemctl is-active openvpn@$template.service
"If possible, do not use the Type=forking setting in service files. But if you do, make sure to set the PID file path using PIDFile=. See systemd.service(5) for details."
That is just for info. Don't know what happens (actual or in future) if unit file is not implemented as recomended. And don't know what others say about systemd definition of "new style daemons".
I'd much rather have a --systemd option in openvpn so I can use Type=notify - the OpenVPN guys are pretty open to such things IIRC, so maybe I will propose a patch at some point.
OpenVPN includes init scripts for "old style init" (e.g. https://github.com/OpenVPN/openvpn/blob/release/2.3/distro/rpm/openvpn.init.d.rhel). So why not include systemd service files in OpenVPN. This is nothing distro specific - from my point of view.