CHKCONFIG(8)

NAME
chkconfig - rc.conf.d management utility

SYNOPSIS
chkconfig [service]
chkconfig [-f] service [on | off]

DESCRIPTION
The chkconfig utility allows a system administrator to easily manage services started by rc(8).

With no arguments, chkconfig will print the state (on or off) of every service found in the directory /etc/rc.conf.d/. The settings will be shown sorted according to the output of rcorder(8).

If the service is specified as the sole argument, chkconfig exits with status 0 if the service is ‘on’ and status 1 if ‘off’. The exit status may be used by shell scripts to test the state of a service, for example:

    if chkconfig wscons; then
    	echo "wscons is on"
    else
    	echo "wscons is off"
    fi

The optional third argument allows the specified service to be set to ‘on’ or ‘off’ for the next time its rc.d(8) script is run (generally the next system reboot).

In order for chkconfig to display service status or to control service state, the service must be managed by chkconfig. A chkconfig managed service is one that has the rcorder(8) keyword “chkconfig” present in the rc.d(8) script for that service. If a service's script does not contain this keyword, it may still be managed by chkconfig using the -f flag. When this flag is used, chkconfig will automatically add the “chkconfig” keyword to the service's script.

SEE ALSO
rc(8), rcorder(8)

HISTORY
The chkconfig command first appeared in NetBSD 1.6.

AUTHORS
The chkconfig program was written by Dan Mercer <dmercer@zembu.com> of Zembu Labs, Inc.

BUGS
The chkconfig program currently does not support configuring the options to be passed to services upon startup.