cubefs/shell/stop.sh
setcy 8b4c412492 fix(shell): do not overwrite configuration file if file exists
Signed-off-by: setcy <2670061551@qq.com>
2023-08-10 19:24:20 +08:00

9 lines
276 B
Bash

#!/bin/bash
echo "stop all service"
ps -ef | grep cfs-server | grep -v grep | awk '{print $2}' | xargs kill -9
echo "stop client"
mount | grep cubefs | awk '{print $3}' | xargs umount -l
ps -ef | grep "build/bin/cfs-client" | grep -v grep | awk '{print $2}' | xargs kill -9