diff options
author | Josh Hoffer <jhoffer@sansorgan.es> | 2024-02-11 14:28:25 -0800 |
---|---|---|
committer | Josh Hoffer <jhoffer@sansorgan.es> | 2024-02-11 15:41:25 -0800 |
commit | e553e37abfb7e7fbd280c0b02d43ecd4331fe3c5 (patch) | |
tree | 884f924b23676dd9c800650673fdd70cf73d31c6 /nixos/modules/services | |
parent | 72485491cc10e7359ebc71c09ee6e014e5488c5e (diff) |
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/modules/services')
-rw-r--r-- | nixos/modules/services/databases/mysql.nix | 8 |
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 ''} |