Files
linuxkit/alpine/packages/database/etc/init.d/database
Justin Cormack cff0230cbb use config tool for host settings
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-04-07 14:58:35 +01:00

17 lines
371 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Configuring settings from database."
depend() {
before hostname sysctl
}
start() {
ebegin "Configuring host settings from database"
mobyconfig exists etc/hostname && echo $(mobyconfig get etc/hostname) > /etc/hostname
mobyconfig exists etc/sysctl.conf && echo $(mobyconfig get etc/sysctl.conf) > /etc/sysctl.conf
eend 0
}