]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
default to out/ output if daemonizing
authorSage Weil <sage@newdream.net>
Fri, 9 May 2008 16:09:43 +0000 (09:09 -0700)
committerSage Weil <sage@newdream.net>
Fri, 9 May 2008 16:09:43 +0000 (09:09 -0700)
src/config.cc
src/start.sh
src/vstart.sh

index 1e7ccf828d889afd3cde977e2679af80738fd0f6..9c95d8c30f4a33c34164d3e7864e141f059ba7d5 100644 (file)
@@ -164,8 +164,8 @@ md_config_t g_conf = {
 
   logger_calc_variance: true,
 
-  dout_dir: 0, //"out",
-
+  dout_dir: "out",    // if daemonize == true
+  
   fake_clock: false,
   fakemessenger_serialize: true,
 
@@ -1060,7 +1060,7 @@ void parse_config_options(std::vector<const char*>& args)
       g_conf.dout_dir = 0;
   }
   */
-  if (g_conf.dout_dir) {
+  if (g_conf.dout_dir && g_conf.daemonize) {
     char fn[80];
     char hostname[80];
     gethostname(hostname, 79);
index 59df31d5b1299539384f07c81eada24a97b0e991..1709d8456dfd421cc8c75f863f955cf0c36939d2 100755 (executable)
@@ -27,7 +27,7 @@ $CEPH_BIN/monmaptool --create --clobber --add $IP:12345 --print .ceph_monmap
 $CEPH_BIN/mkmonfs --clobber mondata/mon0 --mon 0 --monmap .ceph_monmap
 
 # shared args
-ARGS="-d --bind $IP -o out"
+ARGS="-d --bind $IP"
 
 # start monitor
 $CEPH_BIN/cmon $ARGS mondata/mon0 --debug_mon 10 --debug_ms 1
index 3d19bdf22dbe36f4eae72073cc124518279cdbd2..865fc9c26d554f04fb98dc3091f3a21912a5f3fc 100755 (executable)
@@ -27,7 +27,7 @@ $CEPH_BIN/monmaptool --create --clobber --add $IP:12345 --print .ceph_monmap
 $CEPH_BIN/mkmonfs --clobber mondata/mon0 --mon 0 --monmap .ceph_monmap
 
 # shared args
-ARGS="-d --bind $IP -o out"
+ARGS="-d --bind $IP"
 
 # start monitor
 $CEPH_BIN/cmon $ARGS mondata/mon0 --debug_mon 10 --debug_ms 1