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#41735 - [openvpn] avoid forking off
Attached to Project:
Arch Linux
Opened by Silvio Knizek (killermoehre) - Thursday, 28 August 2014, 09:22 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 13 September 2014, 14:19 GMT
Opened by Silvio Knizek (killermoehre) - Thursday, 28 August 2014, 09:22 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 13 September 2014, 14:19 GMT
|
DetailsDescription:
Right now openvpn is forking off with systemd, which should be avoided. Therefor I propose following .service-file: ### /usr/lib/systemd/system/openvpn@.service ### [Unit] Description=OpenVPN connection to %i [Service] ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --syslog openvpn@%i --writepid /run/openvpn@%i.pid PIDFile=/run/openvpn@%i.pid [Install] WantedBy=multi-user.target ### end file ### |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 13 September 2014, 14:19 GMT
Reason for closing: Won't implement
Additional comments about closing: Type=forking is correct for a service which might need to be ordered against other services. No need to go OMGOPTIMIZED here.
Saturday, 13 September 2014, 14:19 GMT
Reason for closing: Won't implement
Additional comments about closing: Type=forking is correct for a service which might need to be ordered against other services. No need to go OMGOPTIMIZED here.
According to https://bugs.archlinux.org/task/37059#comment114649 it's just a convinience setting.
Oddly, you ignore my followup which gives a more robust solution for determining whether or not openvpn is still alive.
So really, I have to ask -- why do you think this "should be avoided"?
The PidFile directive and the --write-pid directives can be removed as it is only for the init system.
A better Service would use a socket unit. It would solve Dave's problem.
No, I'm not, but I'm sure that intentionally increasing the timeframe between these two events is only going to produce more bug reports.
> The PidFile directive and the --write-pid directives can be removed as it is only for the init system.
With a cost and little benefit, as I've already explained.
> A better Service would use a socket unit. It would solve Dave's problem.
...but openvpn has no ingress socket which could be used to activate openvpn.