Skip to content

Commit

Permalink
Fix the bug where init-mariadb-bootstrap service would hang indefinitely
Browse files Browse the repository at this point in the history
This was preventing svc-mariadb to start as s6 supervisor waits for init-mariadb-bootstrap to complete.

Command 'mariadb-admin shutdown' is sufficient, as it'll not return untill the MariaDB is down
  • Loading branch information
xZero707 committed Sep 19, 2023
1 parent ee13306 commit 6b13023
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions rootfs/etc/s6-overlay/s6-rc.d/init-mariadb-bootstrap/run
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ main() {
mariadb-admin -u root --password="${MARIADB_ROOT_PASSWORD}" shutdown

echo "> Bootstrap complete."

# Make sure that all processes have exited
wait
}

main "$@"

0 comments on commit 6b13023

Please sign in to comment.