mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 22:49:32 +00:00
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>