From cd4aec48cbd2cb62629818d4824ce50673c55854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iago=20L=C3=B3pez=20Galeiras?= Date: Wed, 29 Apr 2015 17:06:38 +0200 Subject: [PATCH] stage1: connect stdout and stderr to journal+console This will send apps' output to the journal as well. --- stage1/init/pod.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stage1/init/pod.go b/stage1/init/pod.go index 40f4c59..74c43ac 100644 --- a/stage1/init/pod.go +++ b/stage1/init/pod.go @@ -185,6 +185,9 @@ func (p *Pod) appToSystemd(ra *schema.RuntimeApp, am *schema.ImageManifest, inte opts = append(opts, newUnitOption("Service", "StandardInput", "tty")) opts = append(opts, newUnitOption("Service", "StandardOutput", "tty")) opts = append(opts, newUnitOption("Service", "StandardError", "tty")) + } else { + opts = append(opts, newUnitOption("Service", "StandardOutput", "journal+console")) + opts = append(opts, newUnitOption("Service", "StandardError", "journal+console")) } for _, eh := range app.EventHandlers {