]> 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:41:34 +0000 (19:41 +0100)
commite5492222a9ae5d31d69cc9e5cb57dc094cda556e
tree76962ed2f632b21c3fca89b0ae4197592545c01b
parenta125229f509b593dff7ecc24e21b3de384b3fa98
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>
(cherry picked from commit 3de7be7b17de879a78eea4afe4c918c6104c635d)
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]