O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required