return false;
}
+ config->daemonize = false;
+
if (!fetch_config_int(lines, "num_servers", &config->num_servers)) {
log(ERROR, "Missing 'num_servers' statement in config file.");
return false;
if (has_stats_interval && !has_stats_file) {
log(WARNING, "'stats_interval' given, but no 'stats_file'. No statistics will be written.");
}
+
+ fetch_config_string(lines, "access_log", &config->access_log_file);
for (size_t i = 0; i < lines.size(); ++i) {
const ConfigLine &line = lines[i];
if (line.keyword == "num_servers" ||
line.keyword == "stats_file" ||
- line.keyword == "stats_interval") {
+ line.keyword == "stats_interval" ||
+ line.keyword == "access_log") {
// Already taken care of, above.
} else if (line.keyword == "port") {
if (!parse_port(line, config)) {
if (!parse_error_log(line, config)) {
return false;
}
+ } else if (line.keyword == "daemonize") {
+ config->daemonize = true;
} else {
log(ERROR, "Unknown configuration keyword '%s'.",
line.keyword.c_str());