]> git.ipfire.org Git - thirdparty/openvpn.git/commit
systemd: Do not race on RuntimeDirectory
authorChristian Hesse <mail@eworm.de>
Tue, 24 Jan 2017 14:39:47 +0000 (15:39 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 25 Jan 2017 18:40:16 +0000 (19:40 +0100)
commit3de7be7b17de879a78eea4afe4c918c6104c635d
tree0ceb133602a8a2328005342aa9ae77d3948c8677
parentca5b4c2aad2370be7862660d274b7485f2d0af71
systemd: Do not race on RuntimeDirectory

Different unit instances create and destroy the same RuntimeDirectory.
This leads to running instances where the status file (and possibly
more runtime data) is no longer accessible.

So do not handle this in unit files but provide a tmpfiles.d
configuration and let systemd-tmpfiles do the work.
Nobody will (unintentionally) delete the directories and its content.
As /run is volatile we do not have to care about cleanup.

Signed-off-by: Christian Hesse <mail@eworm.de>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20170124143947.27385-2-list@eworm.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13939.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
configure.ac
distro/systemd/Makefile.am
distro/systemd/openvpn-client@.service.in
distro/systemd/openvpn-server@.service.in
distro/systemd/tmpfiles-openvpn.conf [new file with mode: 0644]