Add reaper code for daemon

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2017-03-09 16:07:35 -08:00
parent 4fd2478513
commit df48983fe7
4 changed files with 109 additions and 5 deletions

View file

@ -38,7 +38,7 @@ type Config struct {
Runtime string `toml:"runtime"`
}
func New(ic *containerd.InitContext) (interface{}, error) {
func New(ic *plugin.InitContext) (interface{}, error) {
path := filepath.Join(ic.State, runtimeName)
if err := os.MkdirAll(path, 0700); err != nil {
return nil, err