openhab-core
openhab-core copied to clipboard
Add delay for jar addons at startup
For years now when updating from snapshot to snapshot I've had an issue I believe is related to startup order on jar addons. If I leave my jars in the addons folder I get a flood of errors for 5-15 minutes the first few times I start OH. If I remove the addons, clear the cache, and then start OH after doing the upgrade it boots cleanly every time. Adding the addons back in then works fine, and subsequent startups are smooth. I assume this is related to java having to do it's cache/compiling at startup on that first shot. Would it be possible to put something in the startup procedure to delay jar initialization until after the OH addons kar is completely loaded?