Chkconfig

From blag.wiki.aktivix.org

Jump to: navigation, search

Contents

INTRO

man chkconfig

and

chkconfig --help

is the documentation avaliable for this command. This is a brief commentary on the use of this command.

If chkconfig isn't in your path (you get "command not found") run `/sbin/chkconfig/`.

USES

Use this command to configure services at runtime. Turn off services that you know that you don't want running at boot time and you should notice that your box boots up a bit faster. It's more or less exatcly the same as `system-config-services` but a text-based version. You can always edit text files for remote boxes but they may not have X enabled.

EXAMPLE

Here's a sample sesion to check what services that start up when the box boots. I'm then gonna turn off a couple.

to see what commands are available

chkconfig


see services init status

chkconfig --list
chkconfig --list | grep kudzu
chkconfig --list | grep cups
chkconfig --list | grep cups-config-daemon

Set services to NOT start at boot:

chkconfig --level 2345 cups-config-daemon off
chkconfig --level 2345 kudzu off
chkconfig --level 2345 cups off

Set services to start at boot:

chkconfig --level 2345 cups-config-daemon on
chkconfig --level 2345 kudzu on
chkconfig --level 2345 cups on

Package Deatails

Name        : chkconfig                    Relocations: (not relocatable)
Version     : 1.3.11.1                          Vendor: Red Hat, Inc.
Release     : 1                             Build Date: Fri 01 Oct 2004 10:47:56 AM MDT
Install Date: Thu 19 May 2005 03:30:51 PM MDT      Build Host: tweety.build.redhat.com
Group       : System Environment/Base       Source RPM: chkconfig-1.3.11.1-1.src.rpm
Size        : 454469                           License: GPL
Signature   : DSA/SHA1, Wed 20 Oct 2004 10:10:46 AM MDT, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary     : A system tool for maintaining the /etc/rc*.d hierarchy.
Description :
Chkconfig is a basic system utility.  It updates and queries runlevel
information for system services.  Chkconfig manipulates the numerous
symbolic links in /etc/rc.d, to relieve system administrators of some
of the drudgery of manually editing the symbolic links.
Personal tools