24 lines
457 B
Plaintext
Executable File
24 lines
457 B
Plaintext
Executable File
#!/sbin/openrc-run
|
|
|
|
export PATH="/usr/local/bin:/usr/local/sbin:$PATH"
|
|
|
|
name="Apply node config"
|
|
description="Apply node configurations using node.env from /opt/monok8s/config"
|
|
|
|
command="/opt/scripts/apply-node-config.sh"
|
|
|
|
LOG_DIR="/var/log/monok8s"
|
|
LOG_FILE="$LOG_DIR/apply-node-config.log"
|
|
|
|
depend() {
|
|
need localmount
|
|
}
|
|
|
|
start() {
|
|
checkpath --directory "$LOG_DIR"
|
|
|
|
ebegin "Applying node config"
|
|
"$command" >>"$LOG_FILE" 2>&1
|
|
eend $?
|
|
}
|