Linux Startup Process and related configuration files

Source: Internet
Author: User

The file systems used during linux Startup and related configuration files are inconsistent between non-release versions of linux. As a result, some related configuration files involved in linux Startup are also different, it is easy to cause confusion. It is mainly reflected in the linux init process Startup Process: The related configuration files under Red Hat are:/etc/inittab/etc/rc. d/rc. sysinit/etc/rc. d/rcX. d/The symbolic links in the directory/etc/rc. d/init. d/The actual daemon script/etc/rc in the directory. d/rc. the configuration file corresponding to the local user-defined STARTUP script Ubuntu is:/etc/inittab (some do not seem to have this file)/etc/rcS. d/startup service Symbolic Link/etc/rcX. d/The startup directory corresponding to each running level, X: 0-6/etc/init. d/actual service startup script/etc/rc. the local User-Defined STARTUP script mainly sorts out the association between configuration files in the Ubuntu system: The init process reads the inittab file and starts the rcS. all services under the d directory, determine the startup running level (initdefault), and stop [K ] Or start [S] corresponding to the running level rcX. d/service rcS in the directory. d/rcX. all files in the d directory are init. d. the symbolic link of the Service script under the directory. Use the [K] identifier to indicate the stop and the [S] identifier to indicate the start. three files:/etc/init. d/rc/etc/init. d/rc. local/etc/init. the d/rcSrc script uses the first parameter to determine the specific service running directory/level, for example, rc S executes the rcS. d/services, rc 5 executes services under rc5.d. Rc. the local script runs or stops/etc/rc according to the identity. local script (if any). The default value is/etc/rc. there is no content in the local file, or there is an exit 0; you can add a custom Startup Program in it. Execute all services in the RFM. d/: exec/etc/init. d/rc S.

Related Article

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: 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.