Add or delete commands for starting services in Ubuntu

Source: Internet
Author: User
Ubuntu environment add Delete startup service command: Add a service: sudoupdate-rc.dServiceNamedefaults delete a service: sudoupdate-rc.dServiceNameremove for example delete a startup service, take cpus (: 631) Print Service as an example, if it is logged on as root, you can ignore sudoroot @ Linuxidc:/# update-rc.dcup

Run the following command to add or delete a startup service in Ubuntu:

Add a service:

Sudo update-rc.d ServiceName defaults

Delete A service:

Sudo update-rc.d ServiceName remove

For example, to delete a startup service, take the cpus (: 631) printing service as an example. If it is logged on as root, you can ignore sudo.

Root @ Linuxidc:/# update-rc.d cupsd remove

Removing any system startup links for/etc/init. d/cupsd...

Well, the cupsd service will not be started again when it is started. The service name is cups.

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.