runc/libcontainer/cgroups
Yong Tang e9944d0f4c Disable systemd in static build
This fix tries to address the warnings caused by static build
with go 1.9. As systemd needs dlopen/dlclose, the following warnings
will be generated for static build in go 1.9:
```
root@f4b077232050:/go/src/github.com/opencontainers/runc# make static
CGO_ENABLED=1 go build  -tags "seccomp cgo static_build" -ldflags "-w -extldflags -static -X main.gitCommit="1c81e2a794c6e26a4c650142ae8893c47f619764" -X main.version=1.0.0-rc4+dev " -o runc .
/tmp/go-link-113476657/000007.o: In function `_cgo_a5acef59ed3f_Cfunc_dlopen':
/tmp/go-build/github.com/opencontainers/runc/vendor/github.com/coreos/pkg/dlopen/_obj/cgo-gcc-prolog:76: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
```

This fix disables systemd when `static_build` flag is on (apply_nosystemd.go
is used instead).

This fix also fixes a small bug in `apply_nosystemd.go` for return value.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-09-11 18:38:22 +00:00
..
fs Updated logrus to v1 2017-07-19 15:20:56 +00:00
rootless rootless: add rootless cgroup manager 2017-03-23 20:46:20 +11:00
systemd Disable systemd in static build 2017-09-11 18:38:22 +00:00
cgroups.go cgroups: update the comments 2017-01-03 22:40:12 +08:00
cgroups_test.go Rework ParseCgroupFile 2015-09-10 20:59:27 +03:00
cgroups_unsupported.go Move libcontainer into subdirectory 2015-06-21 19:29:15 -07:00
stats.go Expose memory.use_hierarchy in MemoryStats 2017-03-31 13:40:34 -04:00
utils.go Merge pull request #1372 from cloudfoundry-incubator/cpuset-mount-root 2017-05-25 09:53:57 -07:00
utils_test.go Create containers when cgroups already mounted 2017-03-15 10:10:30 +00:00