log_file:
text log_limit {
- this_log->rf = rf_open(new_config->pool, $1, "a");
- if (!this_log->rf) cf_error("Unable to open log file '%s': %m", $1);
- this_log->fh = rf_file(this_log->rf);
+ if (!parse_and_exit)
+ {
+ this_log->rf = rf_open(new_config->pool, $1, "a");
+ if (!this_log->rf) cf_error("Unable to open log file '%s': %m", $1);
+ this_log->fh = rf_file(this_log->rf);
+ }
this_log->pos = -1;
this_log->filename = $1;
}
mrtdump_base:
MRTDUMP PROTOCOLS mrtdump_mask ';' { new_config->proto_default_mrtdump = $3; }
| MRTDUMP text ';' {
- struct rfile *f = rf_open(new_config->pool, $2, "a");
- if (!f) cf_error("Unable to open MRTDump file '%s': %m", $2);
- new_config->mrtdump_file = rf_fileno(f);
+ if (!parse_and_exit)
+ {
+ struct rfile *f = rf_open(new_config->pool, $2, "a");
+ if (!f) cf_error("Unable to open MRTDump file '%s': %m", $2);
+ new_config->mrtdump_file = rf_fileno(f);
+ }
}
;