Restart recorder service and detect unavailability

Here is a solution by increasing number of retries and timeout: If database takes longer to start, recorder fails and needs a manual restart - how to avoid it? - #3 by kotrfa