Restart tomcat after Jira restarts the server

Source: Internet
Author: User

After JIRA is installed, You have to restart Tomcat 6 every time you restart the server. This is really troublesome. I finally found the cause today.

The reason is that Jira needs to use SQL Server, but SQL server is not up yet. Find the cause and solve it. Adjust the service startup sequence or service dependency.

Update the HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ tomcat6 service in the registry, add a dependonservice multi-text key value in the base, and add MSSQLServer.

 

Warning if the registry is incorrectly modified using the Registry Editor or other methods, serious problems may occur. These problems may need to be solved by re-installing the operating system. Microsoft cannot solve these problems. You are at your own risk to modify the registry. Make sure that the corresponding registry key value has been backed up.
1. Run regedt32 (do not use Regedit) to open the registry and find the service you want to start. All services are in HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \
For example, if the service name of Windows Search is wsearch, the corresponding Registry location is HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ wsearch.
2. find the key value "group" in the following format. The type is string (reg_sz ). if not, it indicates that the service does not belong to any ServiceGroup. You need to add a string (reg_sz) named "group" and double-click it to edit it, define a group name (do not repeat the original ServiceGroup)
3. Record the group values of the services you need.
4. open HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Control \ servicegrouporder. The list of list key values is the order in which the Group runs, that is, the order in which services of these groups run. to modify the startup sequence, you only need to adjust the row sequence of the group. if it is a custom group, add a row.

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.