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 ''
|
||||
${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
|
||||
''}
|
||||
|
|
Loading…
Reference in a new issue