mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
Drop connections and caches and reload config from files, to allow for low-interruptions updates, and hook up to the usual SIGHUP and ExecReload=. Mark servers and services configured directly via D-Bus so that they can be kept around, and only the configuration file settings are dropped and reloaded. Fixes https://github.com/systemd/systemd/issues/17503 Fixes https://github.com/systemd/systemd/issues/20604
32 lines
1.2 KiB
C
32 lines
1.2 KiB
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
#pragma once
|
|
|
|
#include "conf-parser.h"
|
|
|
|
typedef enum ResolveConfigSource {
|
|
RESOLVE_CONFIG_SOURCE_FILE,
|
|
RESOLVE_CONFIG_SOURCE_NETWORKD,
|
|
RESOLVE_CONFIG_SOURCE_DBUS,
|
|
_RESOLVE_CONFIG_SOURCE_MAX,
|
|
_RESOLVE_CONFIG_SOURCE_INVALID = -EINVAL,
|
|
} ResolveConfigSource;
|
|
|
|
#include "resolved-dns-server.h"
|
|
|
|
int manager_parse_config_file(Manager *m);
|
|
|
|
int manager_parse_search_domains_and_warn(Manager *m, const char *string);
|
|
int manager_parse_dns_server_string_and_warn(Manager *m, DnsServerType type, const char *string);
|
|
|
|
const struct ConfigPerfItem* resolved_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
const struct ConfigPerfItem* resolved_dnssd_gperf_lookup(const char *key, GPERF_LEN_TYPE length);
|
|
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dns_servers);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_search_domains);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dns_stub_listener_mode);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dnssd_service_name);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dnssd_service_subtype);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dnssd_service_type);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dnssd_txt);
|
|
CONFIG_PARSER_PROTOTYPE(config_parse_dns_stub_listener_extra);
|