Differences between System V and BSD in Linux

Source: Internet
Author: User
Linux or Unix has two startup modes: System V and BSD.

The biggest difference is that System V can define which services to start for different running levels, such:
#0-stop (do not set initdefault to 0)
#1-single-user mode
#2-multiple users, but no NFS
#3-full multi-user mode (unbounded black box)
#4-useless
#5-X11 (graphic interface)
#6-Restart (do not set initdefault to 6)
The Startup Mode of System V can be flexibly defined to start the FTP service at the running level 3, but not at the running level 5.
Using BSD has no concept of running level.

Different startup scripts:

BSD Startup Mode: in/etc/rc. d and/usr/local/etc/rc. d. in Conf, set xxx_enable = "yes" or xxx_enable = "no" to start or stop the service with the system. The file is/etc/defaults/RC. A subset of conf. The BSD startup method has no running level, which is simple but lacks diversity.

System V Startup Mode: that is, the Linux Startup Mode. The script for starting the service is stored in/etc/rc. d/init. d. the d directory contains many directories similar to rc0.d or rc2.d. This defines the directories of services to be started for each different running level. The number 0 1 2 indicates the running level, access these directories and you will see many linked files. Files starting with S or K indicate whether to enable the Service at the current running level. These files are linked to/etc/rc respectively. d/init. d/Many executable files below.


Note: In some operating systems in System V Startup Mode (such as redhat9), except for/etc/rc. d/init. d/directory, and/etc/init. d/This directory, in fact, LS-l, you can see,/etc/init. d/The Directory is originally linked to/etc/rc. d/init. d.
From: http://f543711700.iteye.com/blog/1167656

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.