diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-03-12 17:13:09 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-05-18 18:42:15 -0700 |
commit | 63a9bbb2a846af752e5f7f80b110fc40dc916c4d (patch) | |
tree | 84c3ed4fe5918f43f44df06feeaeaaa190a37e3d /extras | |
parent | 19394ef5f133d18aea757129bd903307814f1afb (diff) |
init.d: stop only 'glusterd' process on '/etc/init.d/glusterd stop'
earlier it used to stop even brick processes and gluster NFS server
process, which is not a expected behavior for command
'/etc/init.d/glusterd stop'
Change-Id: Ibc092cdf2693b3b2ae491d32ce3f0113854149c8
Signed-off-by: Amar Tumballi <amarts@redhat.com>
BUG: 796998
Reviewed-on: http://review.gluster.com/2919
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'extras')
-rwxr-xr-x | extras/init.d/glusterd-Redhat.in | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index cf9d390f0cb..18f3debc4ca 100755 --- a/extras/init.d/glusterd-Redhat.in +++ b/extras/init.d/glusterd-Redhat.in @@ -49,20 +49,7 @@ stop() fi 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 - - if [ -f /etc/glusterd/nfs/run/nfs.pid ] ;then - pid=`cat /etc/glusterd/nfs/run/nfs.pid`; - cmd=`ps -p $pid -o comm=` - - if [ $cmd == "glusterfs" ]; then - kill `cat /etc/glusterd/nfs/run/nfs.pid` - fi - fi } |