Skip to content

Commit 15677e2

Browse files
Merge pull request #197 from ISISComputingGroup/mysql-delayed-start
Make mysql delayed start
2 parents f6c2601 + 9f5093e commit 15677e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

installation_and_upgrade/ibex_install_utils/tasks/mysql_tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ def _setup_mysql8_service(self):
221221
.format(os.path.join(MYSQL_FILES_DIR, "data")))
222222

223223
admin_commands.add_command("sc", "start MYSQL80", expected_return_val=None)
224-
admin_commands.add_command("sc", "config MYSQL80 start= auto")
224+
# we use "delayed-auto" for start= as we have some ibex installations where a required disk volume
225+
# doesn't get mounted in time if just "auto" is used
226+
admin_commands.add_command("sc", "config MYSQL80 start= delayed-auto")
225227
admin_commands.add_command("sc",
226228
"failure MYSQL80 reset= 900 actions= restart/10000/restart/30000/restart/60000")
227229
admin_commands.add_command("sc", "failureflag MYSQL80 1")

0 commit comments

Comments
 (0)