Jira linux start stop script

Have you ever needed a jira startup script to take care that your confluence get's autostarted?

Jira startup script:

#!/bin/bash
# Jira startup script
# Script provided by comdivision consulting GmbH (http://www.comdivision.com)
#chkconfig: 2345 80 05
#description: Jira

CATALINA_HOME=/opt/atlassian-jira-enterprise-4.0.1-standalone

start() {
        echo "Starting Jira: "
          $CATALINA_HOME/bin/startup.sh
        echo "done."
}
stop() {
        echo "Shutting down Jira: "
          $CATALINA_HOME/bin/shutdown.sh
        echo "done."
}

case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        stop
        sleep 10
        #echo "Hard killing any remaining threads.."
        #kill -9 `cat $CATALINA_HOME/work/catalina.pid`
        start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart}"
esac

exit 0

Install the script:

cd /etc/init.d
chmod a+rx jira
chkconfig --add jira
chkconfig --levels 345 confluence on

Labels

jira jira Delete
atlassian atlassian Delete
linux linux Delete
centos centos Delete
startup startup Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.