mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
userbdb: pass log level from main daemon to worker
This commit is contained in:
committed by
Luca Boccassi
parent
39af486a7f
commit
f9f5ce61fa
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user