nixos/mysql: remove MySQL fixed 30 second timeout

Removed hard coded timeout in postScript, allow using
more general systemd TimeoutStartSec instead.
This commit is contained in:
Josh Hoffer 2024-02-11 14:28:25 -08:00
parent 72485491cc
commit e553e37abf

View file

@ -379,17 +379,9 @@ in
in ''
${optionalString (!isMariaDB) ''
# Wait until the MySQL server is available for use
count=0
while [ ! -e /run/mysqld/mysqld.sock ]
do
if [ $count -eq 30 ]
then
echo "Tried 30 times, giving up..."
exit 1
fi
echo "MySQL daemon not yet started. Waiting for 1 second..."
count=$((count++))
sleep 1
done
''}