mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-01-13 07:26:30 +07:00
execute: send output of services by default to same place as systemd internal output
This commit is contained in:
parent
03fd9c4932
commit
8783d2feae
@ -1078,8 +1078,9 @@ void exec_context_init(ExecContext *c) {
|
||||
c->mount_flags = MS_SHARED;
|
||||
|
||||
c->std_input = EXEC_INPUT_NULL;
|
||||
c->std_output = EXEC_OUTPUT_SYSLOG;
|
||||
c->std_error = EXEC_OUTPUT_SYSLOG;
|
||||
c->std_output = c->std_error =
|
||||
(log_get_target() == LOG_TARGET_CONSOLE ? EXEC_OUTPUT_INHERIT :
|
||||
log_get_target() == LOG_TARGET_KMSG ? EXEC_OUTPUT_KMSG : EXEC_OUTPUT_SYSLOG);
|
||||
}
|
||||
|
||||
void exec_context_done(ExecContext *c) {
|
||||
|
Loading…
Reference in New Issue
Block a user