File definition in the init. d directory

Source: Internet
Author: User

Some scripts stored in the init. d directory are generally startup scripts for some services set in Linux.

The system has installed a lot of services, and there are a lot of corresponding scripts.

Run these scripts to start, stop, and restart these services.


1. The meanings of kxx or sxx contained in front of these linked files:
Kill a service with K, and s indicates start.

For example, the file ls/etc/init. d/s11_udev # s11_udev will automatically execute the command to start the udev service at startup.

 

2. Functions of numbers following K and S:
It is used to sort the scripts, that is, to determine the execution sequence of these scripts. If the values are small, the scripts are executed first, and the scripts are executed after the values are large. These execution sequence is very important !!!

For example, to start the apache service, you must configure the network interface first.

File definition in the init. d directory

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.