diff options
author | Niels de Vos <ndevos@redhat.com> | 2015-01-16 13:48:49 +0100 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-01-19 00:55:31 -0800 |
commit | 10e4add35f64c24fe9ef03dc6824975fc9db1455 (patch) | |
tree | 97813833dac239fe1e9bf5fdd26bd56a88fc948d /configure.ac | |
parent | 4d003c1b1b6dfd4ba94bb006b7ab6451fc62e170 (diff) |
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 <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/9458
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Lalatendu Mohanty <lmohanty@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index a9326aa1a21..cfb0267209f 100644 --- a/configure.ac +++ b/configure.ac @@ -180,6 +180,7 @@ AC_CONFIG_FILES([Makefile extras/init.d/glusterd-SuSE extras/systemd/Makefile extras/systemd/glusterd.service + extras/run-gluster.tmpfiles extras/benchmarking/Makefile extras/hook-scripts/Makefile extras/ocf/Makefile @@ -295,6 +296,13 @@ AC_ARG_WITH(launchddir, [launchddir='/Library/LaunchDaemons']) AC_SUBST(launchddir) +AC_ARG_WITH(tmpfilesdir, + AC_HELP_STRING([--with-tmpfilesdir=DIR], + [tmpfiles config in DIR, disabled by default]), + [tmpfilesdir=$withval], + [tmpfilesdir='']) +AC_SUBST(tmpfilesdir) + AC_ARG_WITH([ocf], [AS_HELP_STRING([--without-ocf], [build OCF-compliant cluster resource agents])], , |