chkconfig COMMAND:
chkconfig command is used to change, update and query runlevel information for system services. chkconfig is an admin command.
SYNTAX:
The Syntax is
chkconfig [options]
OPTIONS:
--add service
Create a start or kill symbolic link in every runlevel for the specified service according to default behavior specified in the service's initialization script.
--list
Print whether the specified service is on or off in each level. If no service is specified, print runlevel information for all services managed by chkconfig.
--level numbers
Specify by number the runlevels to change. Provide numbers as a numeric string: e.g., 016 for levels 0, 1 and 6. Use this to override specified defaults.
--del service
Remove entries for specified service from all runlevels.
EXAMPLE:
chkconfig --list
The above configuration command list the runlevels and the service status(i.e, on or off).
chkconfig tomcat5 off
The above command is used to set the status for tomcat5 service. Now tomcat5 service status is off.
chkconfig --list tomcat5
Output:
tomcat5 0:off 1:off 2:off 3:off 4:off 5:off 6:off
The above command displays the status of tomcat5 service(i.e, on or off).
A Note
Find LINUX Commands... Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX / UNIX cmd reference. This is a copyright content.