Hi again,
Before I start, please use the same thread if something is not clear
Now, lets give this another try.
Quote:
i am using mandrake linux 10.0.i need to know the file that load the services during boot up.
|
The services are not started by 1 file, there are several (take a look at /etc/rc.d/init.d). All (most) services have an init script specific for that service (ie: sshd for the ssh daemon, sysklogd for the syslog daemon). The runlevel you boot into determines which services are started. That's why there are rcX.d directories (/etc/rc.d/rc5.d for example) with files starting with S (start) and/or K (stop/kill).
The above is a very simplistic view. For a more detailed explanation take a look at these:
man 8 init
http://www.freeos.com/printer.php?entryID=3243
http://www.redhat.com/docs/manuals/l...-shutdown.html Old, but not much has changed in the boot process.
There's a lot more info about this subject on the net.
Quote:
also during boot a word like [ O K ] AND [ FAILED ] will come may i know where is that file......
|
In the directory /etc/rc.d/init.d is a file called functions. The words OK and FAILED (among a lot of other things) are generated by this script. This file called functions is parsed ('activated') by an init script (could look something like this:
. /etc/rc.d/init.d/functions).
Because most init scripts do, on a basic level, the same thing (start something, stop something, did the start/stop finish with/without an error etc, etc) it was decided to make one script (functions) instead of putting the same code in all the init scripts. All the functionality from the functions script is accessible from within the init script after you parse ('activate') it.
Be sure to have a good understanding of the init process, runlevels and shellscripting before you start changing/deleting/adding these files.
You could render (part of) your linux box useless!!. You have been warned
Hope this clears things up a bit.