shared/conf-parser: collapse pkgdir and conf_file args into one
This essentially reverts 5656cdfeea. I find it
much easier to understand what is going on when the
path-relative-to-the-search-path is passed in full, instead of being constructed
from two parts, with one of the parts being implicit in some places.
Also, we call 'systemd-analyze cat-config <path>' with <path> with the same
meaning, so this makes the internal and external APIs more consistent.
This commit is contained in:
@@ -1884,12 +1884,14 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
|
||||
}
|
||||
|
||||
static int server_parse_config_file(Server *s) {
|
||||
const char *conf_file = "journald.conf";
|
||||
const char *conf_file;
|
||||
|
||||
assert(s);
|
||||
|
||||
if (s->namespace)
|
||||
conf_file = strjoina("journald@", s->namespace, ".conf");
|
||||
conf_file = strjoina("systemd/journald@", s->namespace, ".conf");
|
||||
else
|
||||
conf_file = "systemd/journald.conf";
|
||||
|
||||
return config_parse_config_file(conf_file, "Journal\0",
|
||||
config_item_perf_lookup, journald_gperf_lookup,
|
||||
|
||||
Reference in New Issue
Block a user