chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03fd9c4
)
execute: send output of services by default to same place as systemd internal output
author
Lennart Poettering
<lennart@poettering.net>
Wed, 19 May 2010 19:51:25 +0000
(21:51 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 19 May 2010 19:51:25 +0000
(21:51 +0200)
src/execute.c
patch
|
blob
|
history
diff --git
a/src/execute.c
b/src/execute.c
index 51e768893c83ff763921306926249cb1422fdbbd..f3cf0261568377b9bce62c620eef015aaf909c25 100644
(file)
--- a/
src/execute.c
+++ b/
src/execute.c
@@
-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) {