chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: hide output of sysv scripts if quiet is passed on the kernel cmdline
[elogind.git]
/
src
/
service.c
diff --git
a/src/service.c
b/src/service.c
index f081705604180cd01d56058a17b630ef23262bb1..c052d7cdcbc291363c38a405424d5221e0ebe96b 100644
(file)
--- 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->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;
s->exec_context.kill_mode = KILL_PROCESS_GROUP;
u->meta.load_state = UNIT_LOADED;