]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
initscripts: add 'killall' command
authorSage Weil <sage@newdream.net>
Mon, 2 Mar 2009 18:11:14 +0000 (10:11 -0800)
committerSage Weil <sage@newdream.net>
Mon, 2 Mar 2009 19:10:07 +0000 (11:10 -0800)
src/ceph-daemons
src/mkcephfs

index 166da5a9bb6709a49dd6a2c13b45ff593a40877e..aeacb84c52b2c5c6fe70bc61891edc4eccb03ca9 100755 (executable)
@@ -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
index 2da42814d36e8dbe7bdd470af04beceb00737cf0..c7e1a091466838ec2b82e92faa9015e2001fbcdb 100755 (executable)
@@ -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