From 7b07d444a77526f27f860210930bf1d4c7fbea9b Mon Sep 17 00:00:00 2001 From: Lakshmipathi G Date: Tue, 22 Feb 2011 08:29:07 +0000 Subject: install gluster binaries under /opt/glusterfs/version with sym.link at /usr/bin Signed-off-by: Lakshmipathi G Signed-off-by: Anand V. Avati BUG: 2279 (rpm spec file changes) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2279 --- extras/init.d/glusterd-Redhat.in | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'extras') diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index 5ee3ab90832..0c39ff139ac 100755 --- a/extras/init.d/glusterd-Redhat.in +++ b/extras/init.d/glusterd-Redhat.in @@ -8,6 +8,8 @@ . /etc/rc.d/init.d/functions BASE=glusterd +GLUSTERFSD=glusterfsd +GLUSTERFS=glusterfs GLUSTERD_BIN=@prefix@/sbin/$BASE GLUSTERD_OPTS="" GLUSTERD="$GLUSTERD_BIN $GLUSTERD_OPTS" @@ -29,6 +31,11 @@ stop() echo -n $"Stopping $BASE:" killproc $BASE echo + pidof -c -o %PPID -x $GLUSTERFSD &> /dev/null + [ $? -eq 0 ] && killproc $GLUSTERFSD &> /dev/null + + pidof -c -o %PPID -x $GLUSTERFS &> /dev/null + [ $? -eq 0 ] && killproc $GLUSTERFS &> /dev/null } -- cgit