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.