about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJosh Hoffer <jhoffer@sansorgan.es>2024-02-11 14:28:25 -0800
committerJosh Hoffer <jhoffer@sansorgan.es>2024-02-11 15:41:25 -0800
commite553e37abfb7e7fbd280c0b02d43ecd4331fe3c5 (patch)
tree884f924b23676dd9c800650673fdd70cf73d31c6 /nixos
parent72485491cc10e7359ebc71c09ee6e014e5488c5e (diff)
downloadnixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.tar
nixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.tar.gz
nixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.tar.bz2
nixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.tar.lz
nixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.tar.xz
nixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.tar.zst
nixlib-e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5.zip
nixos/mysql: remove MySQL fixed 30 second timeout
Removed hard coded timeout in postScript, allow using
more general systemd TimeoutStartSec instead.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/databases/mysql.nix8
1 files changed, 0 insertions, 8 deletions
diff --git a/nixos/modules/services/databases/mysql.nix b/nixos/modules/services/databases/mysql.nix
index 128bb0862175..788a4bd43c68 100644
--- a/nixos/modules/services/databases/mysql.nix
+++ b/nixos/modules/services/databases/mysql.nix
@@ -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
         ''}