diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2009-02-18 11:07:19 -0800 |
---|---|---|
committer | Yehuda Sadeh <yehuda@hq.newdream.net> | 2009-02-18 11:07:19 -0800 |
commit | ffc756ea682bbd9994f2d56e5b0a00c29437bc8d (patch) | |
tree | 716f6c1de0e7a998d93bf4c512c3324c43894e30 | |
parent | 6a71ef75259db25516322dc01ec941a828651d5a (diff) | |
download | ceph-ffc756ea682bbd9994f2d56e5b0a00c29437bc8d.tar.gz |
conf: can turn on debug logs in startup.conf
-rwxr-xr-x | src/cephd | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cephd b/src/cephd index e43d9988a9d..b64546e930d 100755 --- a/src/cephd +++ b/src/cephd @@ -7,13 +7,14 @@ def_mon_port=6789 def_num_mon=3 def_num_osd=1 def_num_mds=1 +def_debug=0 def_osd_dev=dev/osd\$osd SCRIPT_BIN=`dirname $0` . $SCRIPT_BIN/ceph_common.sh -let debug=0 +let debug=$def_debug let do_start=0 let do_stop=0 let select_mon=0 @@ -121,6 +122,8 @@ get_val CEPH_NUM_MON "$CEPH_NUM_MON" global num_mon $def_num_mon get_val CEPH_NUM_OSD "$CEPH_NUM_OSD" global "osd num" $def_num_osd get_val CEPH_NUM_MDS "$CEPH_NUM_MDS" global num_mds $def_num_mds +[ $debug -eq 0 ] && get_conf_bool debug 0 debug global + ARGS="-f" if [ $debug -eq 0 ]; then |