chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a37b560
)
service: use 'syslog+console' for sysv_console
author
Michal Schmidt
<mschmidt@redhat.com>
Fri, 16 Dec 2011 16:38:01 +0000
(17:38 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Fri, 16 Dec 2011 16:40:41 +0000
(17:40 +0100)
The default output to 'tty' for SysV service was making it hard to debug
problems because error messages were missing from syslog.
src/service.c
patch
|
blob
|
history
diff --git
a/src/service.c
b/src/service.c
index 5243e690df07426940109932db106ad2a06a97d0..feecbbe2b6a93ad919e8bf32aec71f2069aefe25 100644
(file)
--- a/
src/service.c
+++ b/
src/service.c
@@
-841,7
+841,7
@@
static int service_load_sysv_path(Service *s, const char *path) {
s->restart = SERVICE_RESTART_NO;
if (s->meta.manager->sysv_console)
- s->exec_context.std_output = EXEC_OUTPUT_
TTY
;
+ s->exec_context.std_output = EXEC_OUTPUT_
SYSLOG_AND_CONSOLE
;
s->exec_context.kill_mode = KILL_PROCESS;