Run Level Scripts
Here, we’ll explore the scripts associated with each run-level and how they control services.
- Explanation:
- Run-level scripts are stored in directories like
/etc/rc.dor/etc/init.dand control the startup and shutdown of services. - Scripts have specific naming conventions (e.g.,
S##namefor start scripts,K##namefor stop scripts).
- Run-level scripts are stored in directories like
- Example:
- Starting a service manually:rubyCopy code
$ sudo service serviceName start
- Starting a service manually:rubyCopy code
