mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-33750: Remove seq in Debian init.d for-loop
Make all init.d script for loops to use new {1..5} syntax and rework one not to use seq as all the rest use new Bash syntax.
This commit is contained in:
committed by
Daniel Black
parent
7ae9505106
commit
4c1e4ba62e
12
debian/mariadb-server.mariadb.init
vendored
12
debian/mariadb-server.mariadb.init
vendored
@@ -176,8 +176,18 @@ case "${1:-''}" in
|
|||||||
# Start MariaDB!
|
# Start MariaDB!
|
||||||
/usr/bin/mariadbd-safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
|
/usr/bin/mariadbd-safe "${@:2}" 2>&1 >/dev/null | $ERR_LOGGER &
|
||||||
|
|
||||||
for _ in $(seq 1 "${MYSQLD_STARTUP_TIMEOUT:-30}")
|
# Make sure that there is some default
|
||||||
|
# 30 seconds is fine default for starting
|
||||||
|
# maximum is one hour if there is gigantic
|
||||||
|
# database
|
||||||
|
MARIADB_STARTUP_TIMEOUT=${MYSQLD_STARTUP_TIMEOUT:-30}
|
||||||
|
|
||||||
|
for i in {1..3600}
|
||||||
do
|
do
|
||||||
|
if [ "${i}" -gt "${MARIADB_STARTUP_TIMEOUT}" ]
|
||||||
|
then
|
||||||
|
break
|
||||||
|
fi
|
||||||
sleep 1
|
sleep 1
|
||||||
if mariadbd_status check_alive nowarn
|
if mariadbd_status check_alive nowarn
|
||||||
then
|
then
|
||||||
|
Reference in New Issue
Block a user