This makes it consistent with all other services.
This commit also adds it to the old-set-parser, so the old service name
still works but gives a warning.
config_parser_apply_line(ctx, CONFIG_LINE_TYPE_SECTION_BEGIN,
"protocol", "sieve");
return TRUE;
+ } else if (ctx->pathlen == 0 && strcmp(key, "service") == 0 &&
+ strcmp(value, "dns_client") == 0) {
+ obsolete(ctx, "service dns_client {} has been replaced by service dns-client { }");
+ config_parser_apply_line(ctx, CONFIG_LINE_TYPE_SECTION_BEGIN,
+ "service", "dns-client");
+ return TRUE;
}
break;
case CONFIG_LINE_TYPE_SECTION_END:
/* </settings checks> */
struct service_settings dns_client_service_settings = {
- .name = "dns_client",
+ .name = "dns-client",
.protocol = "",
.type = "",
.executable = "dns-client",