]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: don't do special things for unprivileged daemons 723/head
authorSage Weil <sage@inktank.com>
Tue, 15 Oct 2013 21:35:20 +0000 (14:35 -0700)
committerSage Weil <sage@inktank.com>
Tue, 15 Oct 2013 21:35:20 +0000 (14:35 -0700)
We generally do want an admin socket and log, and people usually run these
as root.  This is more confusing than useful.

Fixes: #6334
Signed-off-by: Sage Weil <sage@inktank.com>
src/common/common_init.cc

index ef8cf0100724d5b71a58f0df76dcc616ed3caba7..18fdf7267870fb1dc5908bf8615d8a1edbd7bcd9 100644 (file)
@@ -75,12 +75,8 @@ CephContext *common_preinit(const CephInitParameters &iparams,
 
   if ((flags & CINIT_FLAG_UNPRIVILEGED_DAEMON_DEFAULTS) ||
       code_env != CODE_ENVIRONMENT_DAEMON) {
-    // no default log, pid_file, admin_socket
-    conf->set_val_or_die("pid_file", "");
-    conf->set_val_or_die("admin_socket", "");
-    conf->set_val_or_die("log_file", "");
-    // use less memory for logs
-    conf->set_val_or_die("log_max_recent", "500");
+    // do nothing special!  we used to do no default log, pid_file,
+    // admin_socket, but changed our minds.
   }
 
   return cct;