Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check for port connection in Confluence start up script?

Mehal Rathod January 20, 2022

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?

1 answer

0 votes
Pramodh M
Community Champion
January 22, 2022

Hi @Mehal Rathod 

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

Mehal Rathod January 31, 2022

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events