From 6e61cdacbcd10282b359e4f59d7b94545cbd039e Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Thu, 29 Jan 2015 01:03:44 -0500 Subject: [PATCH] MySQL bootstrap: reduce timeout During bootstrap, systemd service waits 300 seconds to timeout if MariaDB fails to start. It's too long and 60 seconds should be enough. It seriously affects the time to deploy OpenStack so we need to reduce this timeout. Change-Id: Iea069179f1d10b91174b000c44db0b93d22b4f0b --- templates/database/etc_initd_mysql_RedHat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/database/etc_initd_mysql_RedHat b/templates/database/etc_initd_mysql_RedHat index c81996a9..ec2a168a 100755 --- a/templates/database/etc_initd_mysql_RedHat +++ b/templates/database/etc_initd_mysql_RedHat @@ -36,7 +36,7 @@ ExecStart=/usr/bin/mysqld_safe --wsrep-new-cluster --basedir=/usr ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID # Give a reasonable amount of time for the server to start up/shut down -TimeoutSec=300 +TimeoutSec=60 # Place temp files in a secure directory, not /tmp PrivateTmp=true