Implemented log rotator for exec based drivers

This commit is contained in:
Diptanu Choudhury
2016-02-04 23:54:15 -08:00
parent e4f4e35c80
commit 7bf254c9af
8 changed files with 30 additions and 12 deletions

View File

@@ -162,6 +162,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle,
AllocDir: ctx.AllocDir,
TaskName: task.Name,
TaskResources: task.Resources,
LogConfig: task.LogConfig,
}
ps, err := exec.LaunchCmd(&executor.ExecCommand{Cmd: "java", Args: args}, executorCtx)
if err != nil {