Changeset 2630

Show
Ignore:
Timestamp:
06/15/12 15:42:44 (11 months ago)
Author:
peter
Message:

make rec_control pick up socket-dir from recursor.conf, fixes #267

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/rec_control.cc

    r2597 r2630  
    5050    exit(99); 
    5151  } 
     52  string configname=::arg()["config-dir"]+"/recursor.conf"; 
     53  cleanSlashes(configname); 
     54 
     55  if(!::arg().preParseFile(configname.c_str(), "socket-dir", LOCALSTATEDIR))  
     56    cerr<<"Warning: unable to parse configuration file '"<<configname<<"'"<<endl; 
    5257} 
    5358