Debiansarge update-rc.d details

Source: Internet
Author: User
Debiansarge under the update-rc.d details-Linux release version of the technology-Debian information, the following is the details to read. The update-rc.d command is used to automatically upgrade the System V type initialization script, simply put, what is what you want the System to run during boot initialization, if you want to stop the instance when it is shut down or restarted, you can use it to help you set it. The connection of these scripts is located at/etc/rcn. d/LnName, and the corresponding Script is located at/etc/init. d/Script-name.

1. Set the startup sequence and running-level startup items:
Update-rc.d <service> start <order> <runlevels>

2. Set to stop at the specified running level in the specified order:
Update-rc.d <service> stop <order> <runlevels>

3. Delete the specified startup Item from all running levels:
Update-rc.d-f <script-name> remove

For example:
Update-rc.d script-name start 90 1 2 3 4 5. stop 52 0 6.

Start 90 1 2 3 4 5.: indicates that the script starts to run in the order of 1, 2, 3, 4, and 5.

Stop 52 0 6.: indicates that the script is stopped from small to large in the order of 0 and 6.
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: 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.