diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-09 18:00:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-09 18:00:24 +0200 |
commit | 6e98720f14dc25ee1d43f951d5c4d79b04ad7506 (patch) | |
tree | 1206be1cf30bbbb86b1549a1d6cf9491b9a5805d /src/service.c | |
parent | 5de6b302196f3a708a0ed36d88abd9e17bbc9d52 (diff) |
service: hide output of sysv scripts if quiet is passed on the kernel cmdline
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index f081705604..c052d7cdcb 100644 --- a/src/service.c +++ b/src/service.c @@ -708,7 +708,7 @@ static int service_load_sysv_path(Service *s, const char *path) { s->type = SERVICE_FORKING; s->valid_no_process = true; s->restart = SERVICE_ONCE; - s->exec_context.std_output = EXEC_OUTPUT_TTY; + s->exec_context.std_output = s->meta.manager->sysv_console ? EXEC_OUTPUT_TTY : EXEC_OUTPUT_NULL; s->exec_context.kill_mode = KILL_PROCESS_GROUP; u->meta.load_state = UNIT_LOADED; |