Set the boot boot sequence for the Linux service __linux

Source: Internet
Author: User

We know that in Linux systems, the startup scripts for system services are generally placed in the/ETC/INIT.D directory. Different boot mode, then corresponding to the/ETC/RCX.D directory. In fact, the documents on the/ETC/RCX.D are generally linked to the/ETC/INIT.D directory of the corresponding files. We also know that the file name under/ETC/RCX.D is preceded by a s+ number or a K + number, where S is started, K is closed, and the value behind it indicates the order of service startup or service exit. So, how do these numbers come from? Is it necessary to change the filename in/etc/rcx.d? The answer is in the negative. So what should I do?

Open the script under/ETC/INIT.D and look for a sentence similar to the following:

#chkconfig: 2345 64 36

Here's 64, is the order of the start of the value, 36 is the order of the exit value, if you need to change the order, it is changed here. Then execute the following command:

#chkconfig--del ServiceName

#chkconfig--add ServiceName

#chkconfig ServiceName on

ServiceName corresponds to your service name.

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.