fix(multiplayer): repair allocated compose verification

This commit is contained in:
Josh Creek
2026-09-04 16:38:10 +01:00
parent e6733bd6cb
commit d64920b0f9
11 changed files with 150 additions and 48 deletions
+6
View File
@@ -226,6 +226,12 @@ func (s *Supervisor) Start(ctx context.Context) error {
s.cmd = exec.CommandContext(ctx, s.config.Command[0], s.config.Command[1:]...)
}
s.cmd.Env = env
// A server's structured stdout/stderr is its operational interface. The
// zero value for exec.Cmd streams is /dev/null, which would make a child
// startup failure invisible to Docker, Kubernetes, and the Compose
// readiness harness while the supervisor can report only "exit status 1".
s.cmd.Stdout = os.Stdout
s.cmd.Stderr = os.Stderr
if err := s.cmd.Start(); err != nil {
return err
}