opensourceautomation / Open-Source-Automation

Open Source Automation is a home and commercial automation engine
www.opensourceautomation.com
GNU Lesser General Public License v3.0
97 stars 62 forks source link

Service MySQL retries #319

Closed VaughnRupp closed 8 years ago

VaughnRupp commented 8 years ago

I fear if the MySQL service does not finish starting the OSA service fails and gives up. The Service should enter into a timed retry loop when trying the initial connection to MySQL.

VaughnRupp commented 8 years ago

As far as I could tell, the logging doing a get property call is the first MySQL point of entry, so I put a connection check in there and 3 retries 5 seconds apart, if it is failing. This is not perfect, but when I enter testing, we will see if it fixes the OSAE service not starting on bootup.