From c551da852716da6957892b824067ddacf799ba3f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 25 Jul 2020 15:45:26 +0800 Subject: [PATCH] stop.sh: stop osd before mon osd sends a MOSDMarkMeDown message to monitor and waits for its ack before timeout, so if we can stop osd before stopping mon, stop.sh can return sooner without waiting until the timeout. Signed-off-by: Kefu Chai --- src/stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stop.sh b/src/stop.sh index 4afc7bcdbe3..e736cb9f232 100755 --- a/src/stop.sh +++ b/src/stop.sh @@ -161,7 +161,7 @@ if [ $stop_all -eq 1 ]; then do_killcephadm fi - for p in ceph-mon ceph-mds $ceph_osd ceph-mgr radosgw lt-radosgw apache2 ganesha.nfsd ; do + for p in $ceph_osd ceph-mon ceph-mds ceph-mgr radosgw lt-radosgw apache2 ganesha.nfsd ; do for try in 0 1 1 1 1 ; do if ! pkill -u $MYUID $p ; then break -- 2.39.5