85 |
|
_H<xml::Node> spectre(*document/"spectre"); |
86 |
|
|
87 |
|
pid = *spectre/"pid"; |
88 |
– |
|
89 |
– |
if (!(*spectre/"prefix").IsEmpty()) |
90 |
– |
prefix = *spectre/"prefix"; |
91 |
– |
|
92 |
– |
if (!(*spectre/"root").IsEmpty()) |
93 |
– |
root = *spectre/"root"; |
94 |
– |
|
95 |
– |
if (!(*spectre/"mount").IsEmpty()) |
96 |
– |
mount = *spectre/"mount"; |
88 |
|
} |
89 |
|
|
90 |
|
{ |
127 |
|
{ |
128 |
|
void reload(int signal, ::siginfo_t* info, void* uap) |
129 |
|
{ |
130 |
+ |
if (Spectre2::debug) |
131 |
+ |
api::Cout << "Reload" << ios::NewLine; |
132 |
+ |
|
133 |
|
Spectre2::daemon->reload(); |
134 |
|
} |
135 |
|
|
136 |
|
void stop(int signal, ::siginfo_t* info, void* uap) |
137 |
|
{ |
138 |
+ |
if (Spectre2::debug) |
139 |
+ |
api::Cout << "Stop" << ios::NewLine; |
140 |
+ |
|
141 |
|
Spectre2::daemon->stop(); |
142 |
|
} |
143 |
|
} |