Deploying run level script execution
Run level scripts allow users to start and stop selected applications while changing the run level.
Put run level scripts in the subdirectory of /etc/rc.d that
is specific to the run level:
- /etc/rc.d/rc2.d
- /etc/rc.d/rc3.d
- /etc/rc.d/rc4.d
- /etc/rc.d/rc5.d
- /etc/rc.d/rc6.d
- /etc/rc.d/rc7.d
- /etc/rc.d/rc8.d
- /etc/rc.d/rc9.d
The /etc/rc.d/rc will run the scripts it finds in the specified directory when the run level changes - first running the stop application scripts then running the start application scripts.
Note: Scripts beginning with
K
are stop scripts, while scripts
beginning with S
are start scripts.