summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-19 04:28:25 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-19 04:28:25 +0200
commit15ca554ba3a40e6840c6d6095ec90cf448720454 (patch)
tree0b0a7884d483775865d9a7c9b8a49ec3284da7d2 /src/execute.c
parent56d748b47e289fc0fcdf7925df1580afbc2d220a (diff)
service: by default send service output to syslog, except for SysV services which should go to the console
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/execute.c b/src/execute.c
index 1076834702..37b2f8412c 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -1087,6 +1087,10 @@ void exec_context_init(ExecContext *c) {
c->cpu_sched_policy = SCHED_OTHER;
c->syslog_priority = LOG_DAEMON|LOG_INFO;
c->mount_flags = MS_SHARED;
+
+ c->std_input = EXEC_INPUT_NULL;
+ c->std_output = EXEC_OUTPUT_SYSLOG;
+ c->std_error = EXEC_OUTPUT_SYSLOG;
}
void exec_context_done(ExecContext *c) {