]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config: disallow -d|--daemonize
authorSage Weil <sage@newdream.net>
Thu, 1 Jul 2010 16:33:02 +0000 (09:33 -0700)
committerSage Weil <sage@newdream.net>
Thu, 1 Jul 2010 16:33:02 +0000 (09:33 -0700)
Either we can daemonize, and do that by default, or we can't, and
shouldn't, even if you pass -d.

src/config.cc

index 373af17f04c4114751cef1832e93145c918df9bd..1c4f54840fe79a85741df7bd2cefa806387ce3d9 100644 (file)
@@ -968,9 +968,11 @@ void parse_startup_config_options(std::vector<const char*>& args, const char *mo
     } else if (isdaemon && CONF_ARG_EQ("nodaemon", 'D')) {
       g_conf.daemonize = false;
       g_conf.log_to_stdout = true;
+      /*
     } else if (isdaemon && CONF_ARG_EQ("daemonize", 'd')) {
       g_conf.daemonize = true;
       g_conf.log_to_stdout = false;
+      */
     } else if (isdaemon && CONF_ARG_EQ("foreground", 'f')) {
       g_conf.daemonize = false;
       g_conf.log_to_stdout = false;