We run some scripts with REST-API requests after restart of our Bitbucket server (self-hosted). At the moment we wait (sleep statement) several minutes but this is a poor workaround.
What is the appropriate way to check if server has completely (re)startet and is able to answer REST requests safely?
Thank you for any hint.