From c78bf93d62126d1e777f4f72322290b40f0121f4 Mon Sep 17 00:00:00 2001 From: "Czarnowski, Przemyslaw" Date: Wed, 28 Apr 2021 11:40:39 +0200 Subject: Moving sockets from /tmp to /run Socket files needed to serve virtual media devices are created in /tmp directory which is temporary tmpfs mount. All temporary directories are subject of systemd's systemd-tmpfiles-clean.service which cleanes up them basing on age. Systemd-tmpfiles-clean uses tmpfiles.d entries to manage all temporary directories. This change moves creation of VM socket directory to tmpfiles.d - appropriate config has been added for Virtual Media. The entry will create socket directory without Age limitation. Socket location is moved from /tmp to /run. Is it more appropriate place where all daemons should have it's working files located. Tested: Manually mounting proxy and legacy cifs/https share, running systemd-tmpfiles-clean.service does not render any problems. Change-Id: I29ace61894587e03449e29c2459930008a2a1d99 Signed-off-by: Czarnowski, Przemyslaw --- tmpfiles.d/virtual-media.conf | 1 + 1 file changed, 1 insertion(+) create mode 100644 tmpfiles.d/virtual-media.conf (limited to 'tmpfiles.d') diff --git a/tmpfiles.d/virtual-media.conf b/tmpfiles.d/virtual-media.conf new file mode 100644 index 0000000..02ff6bc --- /dev/null +++ b/tmpfiles.d/virtual-media.conf @@ -0,0 +1 @@ +d /run/virtual-media 0700 root root -- cgit v1.2.3