summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorFabio M. Di Nitto <fdinitto@redhat.com>2012-02-13 05:24:57 +0000
committerFabio M. Di Nitto <fdinitto@redhat.com>2012-02-13 05:24:57 +0000
commit94424fabd0d8e27af9efad177ca408923cc9c3f6 (patch)
tree996fa6c7784a4c0617ebc42119f0ae447e145db7 /configure.in
parent0a182731e4b7c29cd6dc2e32bc82b574e9c1795a (diff)
downloadlvm2-94424fabd0d8e27af9efad177ca408923cc9c3f6.tar.gz
lvm2-94424fabd0d8e27af9efad177ca408923cc9c3f6.tar.xz
lvm2-94424fabd0d8e27af9efad177ca408923cc9c3f6.zip
In the new corosync world, dlm is a standalone service.
Fix clvmd init script to Require dlm service when building for the new corosync or clvmd will fail to start.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index ab04ebbd..ca7019ae 100644
--- a/configure.in
+++ b/configure.in
@@ -675,6 +675,15 @@ if test x$CLVMD = xall; then
fi
fi
+dnl -- Fixup CLVMD_CMANAGERS with new corosync
+dnl -- clvmd built with corosync >= 2.0 needs dlm (either init or systemd service)
+dnl -- to be started.
+if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
+ if test x$HAVE_CMAP = xyes; then
+ CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
+ fi
+fi
+
################################################################################
dnl -- clvmd pidfile
if test "x$CLVMD" != xnone; then