diff options
Diffstat (limited to 'extras/init.d')
-rwxr-xr-x | extras/init.d/glusterd-Redhat.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/extras/init.d/glusterd-Redhat.in b/extras/init.d/glusterd-Redhat.in index 0c39ff139ac..6e1260e5cda 100755 --- a/extras/init.d/glusterd-Redhat.in +++ b/extras/init.d/glusterd-Redhat.in @@ -34,8 +34,17 @@ stop() 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 + #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 } |