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