From: Sage Weil Date: Mon, 2 Mar 2009 18:11:14 +0000 (-0800) Subject: initscripts: add 'killall' command X-Git-Tag: v0.7~81^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2e2cf349899aeaea559866727be6deacb88a6fb7;p=ceph.git initscripts: add 'killall' command --- diff --git a/src/ceph-daemons b/src/ceph-daemons index 166da5a9bb6..aeacb84c52b 100755 --- a/src/ceph-daemons +++ b/src/ceph-daemons @@ -173,6 +173,10 @@ for name in $what; do stop_daemon $name c$type $pid_file -9 ;; + killall) + echo "killall c$type on $host" + do_cmd "killall -9 c$type" + ;; restart) $0 $options stop $name diff --git a/src/mkcephfs b/src/mkcephfs index 2da42814d36..c7e1a091466 100755 --- a/src/mkcephfs +++ b/src/mkcephfs @@ -114,4 +114,9 @@ for name in $what; do do_cmd "$BINDIR/cosd -c $conf_file --monmap_file $monmap --mkfs_for_osd $num $osd_path" fi + if [[ $type = "mds" ]]; then + # do nothing + echo + fi + done