summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2011-12-16 17:38:01 +0100
committerMichal Schmidt <mschmidt@redhat.com>2011-12-16 17:40:41 +0100
commit18d01523c88d59293d5bd1c199d41ce587e4856e (patch)
treea8fb0617b0fee957b7186d201fbc296c7c17a58d /src/service.c
parenta37b560a63f9b48980b94fc1cf9cd4fe25e3b904 (diff)
service: use 'syslog+console' for sysv_console
The default output to 'tty' for SysV service was making it hard to debug problems because error messages were missing from syslog.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 5243e690df..feecbbe2b6 100644
--- 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;