wiki documentation: Dashboard JIRA 4.0 ... Configuring JIRA Standalone

XMLWordPrintable

      The jira Linux script in http://confluence.atlassian.com/display/JIRA/Starting+JIRA+Standalone+automatically+on+Linux contains errors.

      Below my corrected version:
      --------------
      #!/bin/sh -e

      1. JIRA startup script
        #chkconfig: 2345 80 05
        #description: JIRA
      1. Define some variables
      2. Name of app ( JIRA, Confluence, etc )
        APP=jira
      3. Name of the user to run as
        USER=jira
      4. Location of application's bin directory
        BASE=/opt/jira
        export JAVA_HOME=/usr/java/default

      case "$1" in

      1. Start command
        start)
        echo "Starting $APP"
        /bin/su -m $USER -c "cd $BASE/logs && $BASE/bin/startup.sh &> $BASE/logs/daemon-start.log"
        ;;
      2. Stop command
        stop)
        echo "Stopping $APP"
        /bin/su -m $USER -c "$BASE/bin/shutdown.sh &> $BASE/logs/daemon-stop.log"
        echo "$APP stopped successfully"
        ;;
      3. Restart command
        restart)
        $0 stop
        sleep 10
        $0 start
        ;;
        *)
        echo "Usage: /etc/init.d/$APP {start|restart|stop}

        "
        exit 1
        ;;
        esac

      exit 0
      --------------

            Assignee:
            Jeff Curry
            Reporter:
            Patrick Hancke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h