Use chkconfig in Fedora to set the automatic service startup status

Source: Internet
Author: User
Linux services run in script mode. Of course, Fedora is no exception. The scripts of these services are stored in the/etc/rc. d/init. d directory. You can modify the service scripts to control the running details. Fedira and RedHat provide a chkconfig tool to control the running of services more easily. Usage: chkconfig -- list [name] chkconfig -- addchkconfig -- d

Linux services run in script mode. Of course, Fedora is no exception. The scripts of these services are stored in the/etc/rc. d/init. d directory. You can modify the service scripts to control the running details.

Fedira and RedHat provide a chkconfig tool to control the running of services more easily.

Usage:
Chkconfig -- list [name]
Chkconfig -- add
Chkconfig -- del
Chkconfig -- override
Chkconfig [-- level]

For example, to view the list of all services:
# Chkconfig -- list

View only the running level of one service (smb:
# Chkconfig -- list smb
Smb 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close

The above section clearly shows that the smb server is disabled at all running levels. We can use the following command to open it. For example, to enable smb to run automatically in both 3 (character) and 5 (graphic) modes:

# Chkconfig -- level 35 smb on
# Chkconfig -- list smb
Smb 0: Disable 1: Disable 2: Disable 3: Enable 4: Disable 5: Enable 6: Disable

Is it enabled?

How can this problem be solved? Try changing on to off.

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.