mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-12 05:16:25 +03:00
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:
parent
72485491cc
commit
e553e37abf
1 changed files with 0 additions and 8 deletions
|
@ -379,17 +379,9 @@ in
|
||||||
in ''
|
in ''
|
||||||
${optionalString (!isMariaDB) ''
|
${optionalString (!isMariaDB) ''
|
||||||
# Wait until the MySQL server is available for use
|
# Wait until the MySQL server is available for use
|
||||||
count=0
|
|
||||||
while [ ! -e /run/mysqld/mysqld.sock ]
|
while [ ! -e /run/mysqld/mysqld.sock ]
|
||||||
do
|
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..."
|
echo "MySQL daemon not yet started. Waiting for 1 second..."
|
||||||
count=$((count++))
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
''}
|
''}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue