src/server/daemon/srvctrl.c

branch
srvctrl
changeset 178
4760f7f1b197
parent 177
f144b60c71b1
child 254
4784c14aa639
equal deleted inserted replaced
177:f144b60c71b1 178:4760f7f1b197
185 } else { 185 } else {
186 log_ereport(LOG_INFORM, "reconfig: success"); 186 log_ereport(LOG_INFORM, "reconfig: success");
187 } 187 }
188 } else if(!sstrcmp(cmd, S("shutdown"))) { 188 } else if(!sstrcmp(cmd, S("shutdown"))) {
189 webserver_shutdown(); 189 webserver_shutdown();
190 } else if(!sstrcmp(cmd, S("stat"))) {
191 // TODO: implement
192 } else if(!sstrcmp(cmd, S("log"))) {
193 return 0;
190 } else { 194 } else {
191 log_ereport( 195 log_ereport(
192 LOG_FAILURE, 196 LOG_FAILURE,
193 "unknown srvctrl command: %.*s", 197 "unknown srvctrl command: %.*s",
194 (int)cmd.length, 198 (int)cmd.length,

mercurial