projects/logging: start memlogd from init.d

Previously memlogd would always run in the foreground. This patch
adds a `-daemonize` option which binds the /var/run sockets, forks
and execs itself and immediately returns. Therefore the program won't
block (important for an init.d script) but guarantees the sockets will
be available for any program started afterwards.

This also removes the alpine base from the memlogd image as `init`
"containers" are treated as simple file overlays.

Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
David Scott
2018-06-29 14:47:46 +01:00
parent 6dfd40a639
commit 1795c15276
4 changed files with 31 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ init:
- linuxkit/runc:v0.4
- linuxkit/containerd:27a4c84cc8fab2d5ea04342546ecd20453ec99b3
- linuxkit/ca-certificates:v0.4
- linuxkit/memlogd:9b5834189f598f43c507f6938077113906f51012
- linuxkit/memlogd:4c16d6720075bcb2aeb298a8ee2d08d74aa20512
onboot:
- name: sysctl
image: linuxkit/sysctl:v0.4