func (pod *Pod) FinishExecForLaunchable(launchable launch.Launchable) runit.Exec { p2ExecArgs := p2exec.P2ExecArgs{ Command: pod.FinishExec, User: "******", EnvDirs: []string{pod.EnvDir(), launchable.EnvDir()}, } return append([]string{pod.P2Exec}, p2ExecArgs.CommandLine()...) }
func (pod *Pod) FinishExecForExecutable(launchable launch.Launchable, executable launch.Executable) runit.Exec { p2ExecArgs := p2exec.P2ExecArgs{ Command: pod.FinishExec, User: "******", EnvDirs: []string{pod.EnvDir(), launchable.EnvDir()}, ExtraEnv: map[string]string{launch.EntryPointEnvVar: executable.ServiceName}, } return append([]string{pod.P2Exec}, p2ExecArgs.CommandLine()...) }