From 10e4add35f64c24fe9ef03dc6824975fc9db1455 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 16 Jan 2015 13:48:49 +0100 Subject: build: add a tmpfiles.d config file for /run/gluster New distrubutions have a /run directory on a volatile tmpfs filesystem. This causes /run/gluster to be removed with each reboot. A tmpfiles.d configuration is used to create the directory on boot. EL5 and EL-6 do not use /run, current Fedora versions do. By checking %{_tmpfilesdir} in the .spec, we can identify if the distribution uses tmpfiles.d. Change-Id: I231e7d6603d573cb905246558e14a51577c0eb56 BUG: 1182934 Signed-off-by: Niels de Vos Reviewed-on: http://review.gluster.org/9458 Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Lalatendu Mohanty --- extras/run-gluster.tmpfiles.in | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 extras/run-gluster.tmpfiles.in (limited to 'extras/run-gluster.tmpfiles.in') diff --git a/extras/run-gluster.tmpfiles.in b/extras/run-gluster.tmpfiles.in new file mode 100644 index 00000000000..49a2662c4c8 --- /dev/null +++ b/extras/run-gluster.tmpfiles.in @@ -0,0 +1,2 @@ +# hardcoding /run for now, should be detected while building from source? +d /run/gluster 0755 root root - -- cgit