Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM on jBoss doesnot start as MySQL is not yet running after restart

Avatar

Level 1

Hello
We have simple installation of AEM on jBoss on windows with MySQL. After restart the jBoss server tries to start, but there is significant delay of MySgl service and the jBoss fails to start. Is there a way to force the Jboss service wait for MySQL?

Many thanks for some help

Best regards Jiri

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

@JiriLio This should not happen ideally unless there is something at infra blocking mysql service to start. You can manually start MySQL first and then start the JBoss that is certainly possible and ok. 

 

You can also create a custom bat file(for windows) which should do 3 things.

  1. execute MySQL start command
  2. wait for few mins
  3. call JBoss start command

 

https://www.wikihow.com/Delay-a-Batch-File

https://www.robvanderwoude.com/wait.php

View solution in original post

2 Replies

Avatar

Employee Advisor

@JiriLio 

OOTB turnkey set-ups have MySQL configured as the dependent service for JBoss service i.e JBoss will wait for MySQL to come up before starting the server.

I didn't get the question actually- do you want to decouple the dependency or couple the two?

Go to JBoss service properties in the services.msc and then dependencies, you will be able to couple/decouple the MySQL service.

Avatar

Correct answer by
Level 10

@JiriLio This should not happen ideally unless there is something at infra blocking mysql service to start. You can manually start MySQL first and then start the JBoss that is certainly possible and ok. 

 

You can also create a custom bat file(for windows) which should do 3 things.

  1. execute MySQL start command
  2. wait for few mins
  3. call JBoss start command

 

https://www.wikihow.com/Delay-a-Batch-File

https://www.robvanderwoude.com/wait.php