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, |