// start up network
rank.bind();
- g_conf.daemonize = false; // not us!
messenger = rank.register_entity(entity_name_t::ADMIN());
messenger->set_dispatcher(&dispatcher);
tls_init();
tls_get_val()->disable_assert = 0;
+ g_daemon = daemon;
if (daemon) {
cout << " ** WARNING: Ceph is still under heavy development, and is only suitable for **\n";
cout << " ** testing and review. Do not trust it with important data. **" << std::endl;
entity_addr_t g_my_addr;
md_config_t g_conf;
+bool g_daemon = false;
#include <stdlib.h>
#include <string.h>
-
void env_to_vec(std::vector<const char*>& args)
{
char *p = getenv("CEPH_ARGS");
extern entity_addr_t g_my_addr;
+extern bool g_daemon;
+
struct md_config_t {
char *type;
char *id;
}
_dout_rename_output_file();
- } else {
+ } else if (g_daemon) {
write_pid_file(getpid());
}