summaryrefslogtreecommitdiff
path: root/tmpfiles.d
diff options
context:
space:
mode:
authorCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2021-04-28 12:40:39 +0300
committerCzarnowski, Przemyslaw <przemyslaw.hawrylewicz.czarnowski@intel.com>2021-05-06 14:51:55 +0300
commitc78bf93d62126d1e777f4f72322290b40f0121f4 (patch)
tree10c80af7cef691570ff8e9b5f7457e08e0f31cc4 /tmpfiles.d
parent080a77fea45ae0da4639ddef22be91f853929d99 (diff)
downloadvirtual-media-c78bf93d62126d1e777f4f72322290b40f0121f4.tar.xz
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 <przemyslaw.hawrylewicz.czarnowski@intel.com>
Diffstat (limited to 'tmpfiles.d')
-rw-r--r--tmpfiles.d/virtual-media.conf1
1 files changed, 1 insertions, 0 deletions
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