Gitweb:
http://git.fedorahosted.org/git/?p=cluster.git;a=commitdiff;h=6342b59f089...
Commit: 6342b59f089475e679bbbd440ef8ae6277d173d8
Parent: b1f42a7a30d0ea55c5d152774acde97f5704928b
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
AuthorDate: Fri Sep 14 09:51:14 2012 +0200
Committer: Fabio M. Di Nitto <fdinitto(a)redhat.com>
CommitterDate: Fri Sep 14 09:51:14 2012 +0200
cman init: allow dlm tcp port to be configurable via cman init script
Resolves: rhbz#856954
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
---
cman/init.d/cman | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/cman/init.d/cman b/cman/init.d/cman
index 2101eb7..e254d33 100755
--- a/cman/init.d/cman
+++ b/cman/init.d/cman
@@ -304,7 +304,8 @@ tune_dlm_hash_sizes()
if [ -z "$DLM_LKBTBL_SIZE" ] && \
[ -z "$DLM_RSBTBL_SIZE" ] && \
- [ -z "$DLM_DIRTBL_SIZE" ]; then
+ [ -z "$DLM_DIRTBL_SIZE" ] && \
+ [ -z "$DLM_TCP_PORT" ]; then
return 0
fi
for i in $(seq 1 $maxloop); do
@@ -325,6 +326,9 @@ tune_dlm_hash_sizes()
if [ -n "$DLM_DIRTBL_SIZE" ]; then
echo $DLM_DIRTBL_SIZE > $dlmdir/dirtbl_size
fi
+ if [ -n "$DLM_TCP_PORT" ]; then
+ echo $DLM_TCP_PORT > $dlmdir/tcp_port
+ fi
return 0
}