Ignore:
Timestamp:
07/24/11 20:43:08 (13 years ago)
Author:
tbretz
Message:
Added the possibility to setup DIM_HOST_NODE with the --host program option.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/scheduler.cc

    r11483 r11574  
    805805    po::options_description config("Configuration");
    806806    config.add_options()
    807         ("dns",       var<string>("localhost"),  "Dim nameserver host name (Overwites DIM_DNS_NODE environment variable)")
     807        ("dns",       var<string>("localhost"),       "Dim nameserver (overwites DIM_DNS_NODE environment variable)")
     808        ("host",      var<string>(""),                "Address with which the Dim nameserver can connect to this host (overwites DIM_HOST_NODE environment variable)")
    808809        ("log,l",     var<string>(n), "Write log-file")
    809810        ("no-dim,d",  po_switch(),    "Disable dim services")
     
    842843    p.add("schedule", 1); // The first positional options
    843844
    844     conf.AddEnv("dns", "DIM_DNS_NODE");
     845    conf.AddEnv("dns",  "DIM_DNS_NODE");
     846    conf.AddEnv("host", "DIM_HOST_NODE");
     847
    845848    conf.AddOptions(config);
    846849    conf.AddOptions(control);
     
    902905    }
    903906
    904     Dim::Setup(conf.Get<string>("dns"));
     907    Dim::Setup(conf.Get<string>("dns"), conf.Get<string>("host"));
    905908
    906909//    try
Note: See TracChangeset for help on using the changeset viewer.