]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-helpers.sh: only use mon*pid files when killing MONs 8530/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 11 Apr 2016 09:45:29 +0000 (11:45 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Mon, 11 Apr 2016 09:45:29 +0000 (11:45 +0200)
FreeBSD once in a while forgets to remove *pid files (this is probably a bug).
But taking care of it this way is probably much in line of what is actually needs to be done

Signed-off-by: Willem Jan Withagen wjw@digiware.nl
qa/workunits/ceph-helpers.sh

index 0f9309147ab5fd13fafce5d95f77992432608c7f..10849038c387a79b9acc20c0ab5f5dfeced72e04 100755 (executable)
@@ -213,7 +213,8 @@ function test_kill_daemon() {
 
     ceph osd dump | grep "osd.0 down" || return 1
 
-    for pidfile in $(find $dir -name "*.pid" 2>/dev/null) ; do
+    name_prefix=mon
+    for pidfile in $(find $dir 2>/dev/null | grep $name_prefix'[^/]*\.pid') ; do
         #
         # kill the mon and verify it cannot be reached
         #