Confluence - When to use start-confluence.sh vs startup.sh

I'm attempting to install the latest version of Confluence (5.4.3) via the unpackage method in linux.

I'm looking to find or write my own init script so I can start the service using the command "service start confluence".

I'm a little confused about if I should be using start-confluence.sh or startup.sh within my init script.

start-confluence.sh # executes either catalina.sh or startup.sh

startup.sh # executes catalina.sh

catalina.sh # doe the real work, also reads in data from setenv.sh & setclasspath.sh

This article suggests startup.sh:
https://confluence.atlassian.com/display/DOC/Start+Confluence+Automatically+on+Linux

This article asks a simliar question but no answer:
https://jira.atlassian.com/browse/JRA-23953

This article suggest "start-confluence.sh" is the new script and should be used:
https://confluence.atlassian.com/pages/viewpage.action?pageId=261752746

The information I have so far appears to be conflicing, can anyone give me any insights into this?

1 answer

Hi Andrew

All the articles you mentioned has a valid information.
For additional information, running startup.sh will execute the application using the current user. But start-confluence.sh will execute the application using the user mentioned in user.sh. If the user.sh doesn't specify any user, it will execute the application using the current user.
This affects the directory/file permission when running Confluence.

Regards,
Samuel

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted yesterday in Confluence

Calling all marketing teams who use Confluence - we want to hear from you!

Hi Community! me again 🙂 If you’re a marketing team using Confluence, we want to hear your story! How did you start using Confluence? What are your use cases? What have been some of the benefits?...

45 views 1 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you