Not syncing stdout and stderr of pluging with client

This commit is contained in:
Diptanu Choudhury
2016-02-04 17:36:31 -08:00
parent 9800b7dcfe
commit d8ed2949cd
8 changed files with 30 additions and 13 deletions

View File

@@ -148,8 +148,10 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
if err != nil {
return nil, fmt.Errorf("unable to find the nomad binary: %v", err)
}
pluginLogFile := filepath.Join(ctx.AllocDir.AllocDir, "plugin.out")
pluginConfig := &plugin.ClientConfig{
Cmd: exec.Command(bin, "executor"),
Cmd: exec.Command(bin, "executor", pluginLogFile),
}
exec, pluginClient, err := createExecutor(pluginConfig, d.config.LogOutput)