Basic Structure of linux init program

Source: Internet
Author: User
Article Title: basic structure of linux init program. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Init is the abbreviation of Initialization, that is, Initialization. For Linux, it is the first step to enter the real Linux operating system. So far, we have talked a lot about the first step, but this is different from the previously mentioned BIOS, kernel, or initrd. It is completely for the system software that the user has installed. Linux is going to enter the operating system. The init program is mainly used to concatenate all the functions. Because it is the first program to be executed after entering the operating system, in the operating system, we can see that the init PID is 1 (as shown in 5-1), representing a starting program, daemon in all other executions is a program carried by init. Therefore, when a Linux init fails, it indicates that the operating system cannot be used. It can only be solved by force the system to restart the power supply (the init program should also be used to shut down ).


Although init is just a starting program, the steps and processes contained in init are very complex and important. As long as you can understand each of these processes, the activation process for the main Linux operating system has been achieved. However, to clarify a concept, init is not an absolute and unique Activation Program. Users can also customize the desired activation method, which is also a proof of Linux's elasticity, how to get rid of the execution method, as mentioned in section 5.1, you only need to add a parameter when the system is activated. Of course, you still need to activate the program on your own.

  5.1 basic structure of init

In this chapter, the main operating system is Fedora Core 6, but as long as it is a Linux-based operating system, it will not be much different. The key is the degree of modification of the system vendor Z ', this is what you should pay attention to when checking the process. The overall process of init forest can be listed in the execution order (as shown in Figure 5-2). In this chapter, we will try to clarify each process clearly, however, the scope of init is too wide. to list all the executed software, script files, or variables, you may have to write a book, so you may try to encounter it as much as possible, or you can often see related settings.

Once again, Linux is highly elastic. Although init is a tool that facilitates users to access the system, users still have the right to decide whether to complete all the work by init, if you think there is a problem with the order or method of init execution, or there is a better way or sequence to enter Linux, You can manually turn off the process of executing init. In GRUB

[1] [2] Next page

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.