Added supervised-init.sh to retry ctl init

This commit is contained in:
2026-04-28 03:56:27 +08:00
parent 7b31a1dec3
commit e86b3b3383
3 changed files with 60 additions and 3 deletions

View File

@@ -38,4 +38,4 @@ if [ -n "$K8S_MINOR" ]; then
"$MIGRATION_STATE_DIR/k8s/$K8S_MINOR"
fi
/usr/local/bin/ctl init --env-file "$CONFIG_DIR/cluster.env" >>/var/log/monok8s/bootstrap.log 2>&1 &
/usr/lib/monok8s/lib/supervised-init.sh &