Our confluence database server gets patched/restarted every month along with Confluence application server on the same day. We would like to edit the confluence start up script(https://confluence.atlassian.com/doc/start-confluence-automatically-on-linux-183148.html) and customize it where it prechecks if the database port(confluence database server) is connecting successfully BEFORE bringing up confluence application server.
Any suggestions on how to do this and what additional scripts/commands can be included?
Welcome to Confluence!!
You can follow the below approach
telnet your-db-ip PORT
Check with echo $? for the return status
If the exit status is 0, then start the Confluence Server
Thanks,
Pramodh
Thanks @Pramodh M for your comment.
I am not well-versed with scripting. Could you please let me know what would be the exact syntax script command that I would need to mention in the start up script?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.