Jira

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. You can help by expanding it.
Resources

Atlassian Jira is a ticket based tracking application. This document links to the relevant information at the software suppliers webpage and explains the integration into OpenRC.

Dependencies

Apache2

a supported database (see https://confluence.atlassian.com/adminjiraserver/supported-platforms-938846830.html)

Hint: MariaDB works fine, though it is not officially supported. Use mysql-connector-java-5.1.47.jar and mysql-connector-java-5.1.47-bin.jar for the connectors.

Installation

Warning
This software may cause unwanted damage to the system as it is not contained in an ebuild

Download the official tarball from atlassian and configure accordingly. https://confluence.atlassian.com/adminjiraserver/installing-jira-applications-on-linux-938846841.html

Files

  • /opt/atlassian/jira - Application
  • /var/atlassian/application-data/jira/ - Configuration

OpenRC

The automatically installed script will fail to start at boot, at it does not wait for the database or apache to start. Therefore change it accordingly:

Replace the content of the file to match the following

FILE /etc/init.d/jiraModify startup script
#!/sbin/openrc-run
# According to https://wiki.gentoo.org/index.php?title=Jira

depend() {
	after apache2 mysql
}

start() {
	ebegin "Starting Jira"
	/opt/atlassian/jira/bin/start-jira.sh >/dev/null 2>&1
	eend $?
}

stop() {
	ebegin "Stopping Jira"
	/opt/atlassian/jira/bin/stop-jira.sh >/dev/null 2>&1
	eend $?
}