Files
linuxkit/alpine/packages/hostsettings/etc/init.d/hostsettings
Justin Cormack e5656cc757 Remove sysctl and sysfs database overrides
These never got an interface on any platform, and I don't think they
ever will, we can increase global limits or you can set something
with a privileged container. Can add back later if required.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2017-01-19 15:18:30 +00:00

23 lines
596 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Configuring settings from database."
depend() {
# AWS gets settings via network
need net
before docker
}
start() {
ebegin "Configuring host settings from database"
mobyconfig exists random-seed && mobyconfig get random-seed > /dev/urandom
mobyconfig exists etc/resolv.conf && mobyconfig get etc/resolv.conf > /etc/resolv.conf
mobyconfig exists etc/hosts && mobyconfig get etc/hosts >> /etc/hosts
mobyconfig exists etc/ssl/certs/ca-certificates.crt && mobyconfig get etc/ssl/certs/ca-certificates.crt >> /etc/ssl/certs/ca-certificates.crt
eend 0
}