Red Hat Start Scripts and Order of Operations

From Notes

Jump to: navigation, search

Red Hat uses chkconfig or ntsysv to control which programs start for each runlevel. ntsysv is very easy to use and controls all scripts for the current runlevel through a graphical display -- try it. chkconfig is a command line tool that gives you incredible control over the details of your script scripts.

List all scripts in chkconfig

chkconfig --list

List all scripts that start for each runlevel

chkconfig --list | grep on

Add or remove a script from a specific runlevel

chkconfig --level X[X..] <script> on[|off]

Example: add cvsd to levels 3, 4, and 5 as on, rest as off:

chkconfig --add cvsd            # Adds cvsd to all levels as 'off'
chkconfig --level 345 cvsd on   # Modifies entry to levels 345 to 'on'
Personal tools