C++ CSS HTML Java JavaScript MySQL Oracle PERL PHP SQL Unix VBScript XHTML XML Сети
chkconfig
 

14.5. chkconfig

The chkconfig command can also be used to activate and deactivate services. If you use the chkconfig --list command, you will see a list of system services and whether they are started (on) or stopped (offxinetd.

If you use chkconfig --list to query a service managed by xinetd, you will see whether the xinetd service is enabled (on) or disabled (off). For example, the command chkconfig --list finger returns the following output:

finger          on

As shown, finger is enabled as an xinetd service. If xinetd is running, finger is enabled.

If you use chkconfig --list to query a service in /etc/rc.d, you will see the service's settings for each runlevel. For example, the command chkconfig --list anacron returns the following output:

anacron         0:off   1:off   2:on    3:on    4:on    5:on    6:off

chkconfignscd off in runlevels 3, 4, and 5, use the following command:

chkconfig --level 345 nscd off

WarningWarning
 

Services managed by xinetd are immediately affected by chkconfig. For example, if xinetd is running, finger is disabled, and the command chkconfig finger on is executed, finger is immediately enabled without having to restart xinetdchkconfig. You must stop or start the individual service with the command service daemon stop. In the previous example, replace daemon with the name of the service you want to stop; for example, httpd. Replace stop with start or restart to start or restart the service.

Главная