Editing Startup and Shutdown Scripts
The startup and shutdown scripts reside in the /etc/rc.d directory subtree. These are generally bash scripts that start daemons. Each run level has its own subdirectory of /etc/rc.d, which contains the run level number (as in /etc/rc.d/rc0.d for run level 0, /etc/rc.d/rc3.d for run level 3, and so on). These subdirectories contain symbolic links to actual scripts in /etc/rc.d/init.d. This ensures that all run levels read from the same set of scripts. There is something else to account for, however: Certain processes and daemons must start before other processes. For example, it makes little sense for the system to start the Web server (httpd) before having started the networking on the system because the Web ...
Get Practical Linux now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.