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 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
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

384 views 4 10
Read article

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