diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-02-28 09:43:02 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2024-02-28 13:42:06 +0100 |
commit | f9f5ce61faaa80b84a4bc459a013c1226ece1ca2 (patch) | |
tree | c03b90a24a9edbd446703f66616599e1fd00eb1f /src/userdb/userdbd-manager.c | |
parent | network/ndisc: drop redundant sd_ndisc_router_get_icmp6_ratelimit() (diff) | |
download | systemd-f9f5ce61faaa80b84a4bc459a013c1226ece1ca2.tar.xz systemd-f9f5ce61faaa80b84a4bc459a013c1226ece1ca2.zip |
userbdb: pass log level from main daemon to worker
Diffstat (limited to 'src/userdb/userdbd-manager.c')
-rw-r--r-- | src/userdb/userdbd-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/userdb/userdbd-manager.c b/src/userdb/userdbd-manager.c index 8720721f43..5925602e43 100644 --- a/src/userdb/userdbd-manager.c +++ b/src/userdb/userdbd-manager.c @@ -192,6 +192,12 @@ static int start_one_worker(Manager *m) { _exit(EXIT_FAILURE); } + r = setenv_systemd_log_level(); + if (r < 0) { + log_error_errno(r, "Failed to set $SYSTEMD_LOG_LEVEL: %m"); + _exit(EXIT_FAILURE); + } + r = invoke_callout_binary(SYSTEMD_USERWORK_PATH, STRV_MAKE(SYSTEMD_USERWORK_PATH, "xxxxxxxxxxxxxxxx")); /* With some extra space rename_process() can make use of */ log_error_errno(r, "Failed start worker process: %m"); _exit(EXIT_FAILURE); |