Ubuntu Linux Service Management program: sysv-rc-conf Introduction

Source: Internet
Author: User

Introduction of Sysv-rc-conf

Sysv-rc-conf is a powerful service management program.

Second, background knowledge

Ubuntu Run level

The Linux system runs at a specified run level at all times, and different running levels of programs and services are different, the work to be done and the purpose to be achieved are different, and the system can switch between these run levels to accomplish different tasks.

Ubuntu's system Run level:

0 System shutdown Status

1 single user or system maintenance status

2~5 Multi-user status

6 reboot

View current run level, execute command: runlevel

(RunLevel displays the last run level and the current run level, and "N" indicates that there is no last run level.) )

Switch run level, execute command: int [0123456Ss]

(That is, after the init command followed by a parameter, which is the run-level code to switch to, such as: Shutdown with init 0 command; Restart with the Init 6 command.) )

Linux System main Boot steps:

1. Read the MBR information and start boot Manager

Windows uses NTLDR as the Boot Manager if you have more than one installation on your system

Version of Windows, you will need to select the system you want to enter in the NTLDR.

Linux typically uses a powerful, flexible configuration of GRUB as the Boot Manager.

2. Load system kernel, start init process

The init process is the root process of Linux, and all system processes are its child processes.

3. The init process reads the information in the/etc/inittab file and goes to the preset run level.

Run the script under the corresponding folder in the run level in order. Scripts are usually set with the start argument

Move and point to a program in a system.

Typically, a startup script under the/etc/rcs.d/directory is executed first, followed by

/etc/rcn.d/directory. For example, if you set a run level of 3, it corresponds to the startup

The directory is/etc/rc3.d/.

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.