Maybe make the time to wait between retries a commandline parameter? That way, we can play with that value without requiring new code commits. For example, 5 mins. maybe more than enough time to wait between retries.
Another thing to consider is add an equivalent of server.settings.js file for server config with db info, and settings like this.
Version: unspecified
Severity: normal