diff options
Diffstat (limited to 'execdriver/native/info.go')
-rw-r--r-- | execdriver/native/info.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/execdriver/native/info.go b/execdriver/native/info.go deleted file mode 100644 index aef2f85c6b..0000000000 --- a/execdriver/native/info.go +++ /dev/null @@ -1,21 +0,0 @@ -package native - -import ( - "os" - "path/filepath" -) - -type info struct { - ID string - driver *driver -} - -// IsRunning is determined by looking for the -// pid file for a container. If the file exists then the -// container is currently running -func (i *info) IsRunning() bool { - if _, err := os.Stat(filepath.Join(i.driver.root, i.ID, "pid")); err == nil { - return true - } - return false -} |