]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: apply extra conf after the defaults
authorSage Weil <sage@inktank.com>
Fri, 27 Jul 2012 21:28:04 +0000 (14:28 -0700)
committerSage Weil <sage@inktank.com>
Fri, 27 Jul 2012 21:28:04 +0000 (14:28 -0700)
This let's you do e.g., -o 'debug ms = 100' and it will apply after
the default logging levels.

Signed-off-by: Sage Weil <sage@inktank.com>
src/vstart.sh

index 7ec4fc6765e70b18316de6d717eee30fd65d753f..96216953188e423b07b7f10520d12d15e5f4b311 100755 (executable)
@@ -263,7 +263,6 @@ if [ "$start_mon" -eq 1 ]; then
 [global]
         osd pg bits = 3
         osd pgp bits = 5  ; (invalid, but ceph should cope!)
-$extra_conf
 EOF
                        [ "$cephx" -eq 1 ] && cat<<EOF >> $conf
         auth supported = cephx
@@ -280,6 +279,7 @@ $CMDSDEBUG
         mds debug auth pins = true
         mds debug subtrees = true
         mds data = dev/mds.\$id
+$extra_conf
 [osd]
 $DAEMONOPTS
         osd data = dev/osd\$id
@@ -290,10 +290,14 @@ $DAEMONOPTS
         osd scrub load threshold = 5.0
         filestore xattr use omap = true
 $COSDDEBUG
+$extra_conf
 [mon]
 $DAEMONOPTS
 $CMONDEBUG
+$extra_conf
         mon cluster log file = out/cluster.mon.\$id.log
+[global]
+$extra_conf
 EOF
                fi