Commit de9a0ccd authored by David Auer's avatar David Auer
Browse files

Prevent creation of empty pid directory

parent 70ffbfd9
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -419,6 +419,14 @@ parse_input(const po::variables_map& vm) {
    }
    GKFS_DATA->hosts_file(hosts_file);


    if(gkfs::config::dynamic_placement && vm.count("start-relocation")) {
        cout << "Starting relocation...\n";
        gkfs::relocation::test_d2d_rpc();
        // Don't create any directories and no interest in the other options
        exit(0);
    }

    assert(vm.count("mountdir"));
    auto mountdir = vm["mountdir"].as<string>();
    // Create mountdir. We use this dir to get some information on the
@@ -554,12 +562,6 @@ main(int argc, const char* argv[]) {
        exit(EXIT_FAILURE);
    }

    if(gkfs::config::dynamic_placement && vm.count("start-relocation")) {
        cout << "Starting relocation...\n";
        gkfs::relocation::test_d2d_rpc();
        return 0;
    }

    /*
     * Initialize environment and start daemon. Wait until signaled to cancel
     * before shutting down