summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-19 21:51:25 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-19 21:51:25 +0200
commit8783d2feaeb74fa37494b84024521a6e8a9b9276 (patch)
treec76016b202724809512ca9cb4620cf8764829721 /src/execute.c
parent03fd9c49328be40b53f63b43614eb9bea3a2cf45 (diff)
execute: send output of services by default to same place as systemd internal output
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/execute.c b/src/execute.c
index 51e768893c..f3cf026156 100644
--- 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) {