Managing Services StartUp

Now that you know how to start services in the initial boot procedure, it is easy to understand how the other services are started. The procedure to start services is virtually the same. Starting services automatically when your server boots is based on two principles:

• To start a service automatically, it must be added to the runlevel where you want to start it. For each runlevel, a subdirectory exists in /etc/init.d where you can create a symbolic link to start or stop the service. The name of these subdirectories is rcn.d, where n is the number of the runlevel to which the directory refers.

Before I discuss how to add services to a runlevel, I'll talk about the concept of runlevels.

Was this article helpful?

0 0

Post a comment