Changeset 672 for trunk/pdns/pdns/rec_control.cc
- Timestamp:
- 04/10/06 12:19:35 (4 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/rec_control.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/rec_control.cc
r633 r672 32 32 { 33 33 arg().set("config-dir","Location of configuration directory (pdns.conf)")=SYSCONFDIR; 34 34 35 arg().set("socket-dir","Where the controlsocket will live")=LOCALSTATEDIR; 36 arg().set("socket-pid","When controlling multiple recursors, the target pid")=""; 37 35 38 arg().setCmd("help","Provide this helpful message"); 36 39 … … 50 53 51 54 RecursorControlChannel rccS; 52 rccS.connect(arg()["socket-dir"], "pdns_recursor.controlsocket"); 55 string sockname="pdns_recursor.controlsocket"; 56 if(!arg()["socket-pid"].empty()) 57 sockname+="."+arg()["socket-pid"]; 58 59 rccS.connect(arg()["socket-dir"], sockname); 53 60 54 61 const vector<string>&commands=arg().getCommands();