X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fservice.c;h=0615b51490a4235b716839ed24cce8c02745c1e2;hp=2515cd305f2e7686a78b54daf329cb9572a9bdd3;hb=15ca554ba3a40e6840c6d6095ec90cf448720454;hpb=56d748b47e289fc0fcdf7925df1580afbc2d220a diff --git a/src/service.c b/src/service.c index 2515cd305..0615b5149 100644 --- a/src/service.c +++ b/src/service.c @@ -632,6 +632,11 @@ static int service_load_sysv_path(Service *s, const char *path) { s->valid_no_process = true; s->kill_mode = KILL_PROCESS_GROUP; + /* For SysV services log output should go to the console */ + s->exec_context.std_input = EXEC_INPUT_NULL; + s->exec_context.std_output = EXEC_OUTPUT_TTY; + s->exec_context.std_error = EXEC_OUTPUT_TTY; + u->meta.load_state = UNIT_LOADED; r = 0;