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.d
or/etc/init.d
and control the startup and shutdown of services. - Scripts have specific naming conventions (e.g.,
S##name
for start scripts,K##name
for 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