stage1: connect stdout and stderr to journal+console

This will send apps' output to the journal as well.
This commit is contained in:
Iago López Galeiras
2015-05-28 10:22:59 +02:00
parent 21e1615f32
commit cd4aec48cb
+3
View File
@@ -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 {