right now I can only start Jira logged in as root and using sh /opt/atlassian/jira/bin/catalina.sh run

I'm sure its permissions, because if I try the same as the user when jira was installed 'jira1' it does not start. so I'd like some reference as to what I can do to resolve this so jira1 can start jira.

also I would have to leave this ssh session running to keep jira running, which I don't really want to.

I would like to have a script to run at system start that would start Jira for me.

I found this:

http://wiki.customware.net/repository/display/ATLASSIAN/How+to+set+up+Confluence+or+JIRA+to+start+at+system+boot

which is a file called jira1 in /etc/init.d, but that didn't seem to work either and I'm not sure where logs would be telling me at what step the start has failed.

this is the file jira1:

#!/bin/sh -e

# JIRA startup script

#chkconfig: 2345 80 05

#description: JIRA

# Define some variables

# Name of app ( JIRA, Confluence, etc )

APP=jira

# Name of the user to run as

USER=jira1

# Location of application's bin directory

BASE=/opt/atlassian/jira

# Location of Java JDK

export JAVA_HOME=/usr/lib/jvm/java-6-sun

case $1 in

# Start command

start)

echo Starting $APP

/bin/su -m $USER -c cd $BASE/logs && $BASE/bin/startup.sh &> /dev/null

;;

# Stop command

stop)

echo Stopping $APP

/bin/su -m $USER -c $BASE/bin/shutdown.sh &> /dev/null

echo $APP stopped successfully

;;

# Restart command

restart)

$0 stop

sleep 5

$0 start

;;

*)

echo Usage: /etc/init.d/$APP {start|restart|stop}

exit 1

;;

esac

exit 0

1 answer

1 accepted

There should be a 'jira1' user on your system which was created by the Jira setup. This user has to have some rights in the Jira Home and Installation Directory.

Just take a look there - maybe the files are belonging to the 'jira' user without the '1'.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,264 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot