chkconfig is the command line tool to setup init scripts for different runlevels.
chkconfig allows for quick runlevel editing.
While it is certainly possible to manually make symlinks to set start and stop scripts for each process for each runlevel, chkconfig is far more efficient.
chkconfig --list will show all the init scripts and their status for each runlevel.
chkconfig --level 3 httpd on will set httpd to be on for runlevel 3.
chkconfig --add foo will add the service foo for management by chkconfig. This requires the
/etc/init.d/foo script contain a pair of commented lines near the top that are used by chkconfig. For instance, the network init script begins
The script line
chkconfig: 2345 10 90 tells chkconfig it starts in runlevel 2,3,4 and 5 with priority 10 and stops with priority 90. The description line is continued with the trailing "\".