Linux under Jira self-boot settings

Source: Internet
Author: User

Jira's startup relies primarily on the catalina.sh script in the bin directory, which provides parameters such as the start,stop of the Init script
--------------------------------------------------------------------------------------------------------------- -
#!/bin/bash
#
# chkconfig:2345 85 15
# Description:jira
# Processname:jira

# source Function Library
. /etc/init.d/functions

#下面一行比较重要, for the Jira installation path, no, you will be prompted not to find the file

Catalina_home= "/var/www/jira"

Retval=0

Start () {
Echo-n $ "Starting Jira services:"

. /var/www/jira/bin/catalina.sh start

Retval=$?
Echo
}

Stop () {
Echo-n $ "Shutting down Jira services:"

. /var/www/jira/bin/catalina.sh stop

Retval=$?

Echo
}

Case "$" in
Start
Start
;;
Stop
Stop
;;
Restart|reload)
Stop
Start
;;
Status
Status Jira
Retval=$?
;;
*)
echo $ "Usage: $ {Start|stop|restart|status}"
Exit 1
Esac

Exit $RETVAL

-------------------------------
Save As/etc/init.d/jira

You need to assign executable permissions to the Jira file chmod +x/etc/init.d/jira

Then use the Chkconfig--add Jira to add the self-boot

Chkconfig--list View

Verify that it is valid:

After reboot, the Jira starts normally.

Linux under Jira self-boot settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.