16.Explain the ‘/sbin/init’ or ‘init’ program.
Ans.
1. The ‘sbin/init’ program is the first system process that runs after the kernel has configured the system device and mounted the system drives.
2. The init program is like the project manager of the system because it manages the remaining steps of booting the system.
3. Basically init program co-ordinate the order of many scripts, it will run to complete system setup.
4. The first script init runs is the ‘/etc/rc.d/rc.sysinit’ script, this script starts system swap, checks the file systems, and performs other system initialization.
5. Then the init command refers to the ‘/etc/inittab’ script to get information about how to start the system, which system initialization script to run and bring the system to runlevel indicated in the ‘initab’ script.
6. After reading the ‘/etc/inittab’ script, init turns over the control to the rc.sysinit program which reads the ‘/etc/rc.d/init.d/functions’ file to determine the procedure to use to set the default system path, start and stop program.
7. Next script to run is ‘/etc/rc.d/rc’, which is responsible for starting and stopping services when the runlevel changes and determine the new runlevel.
Ans.
1. The ‘sbin/init’ program is the first system process that runs after the kernel has configured the system device and mounted the system drives.
2. The init program is like the project manager of the system because it manages the remaining steps of booting the system.
3. Basically init program co-ordinate the order of many scripts, it will run to complete system setup.
4. The first script init runs is the ‘/etc/rc.d/rc.sysinit’ script, this script starts system swap, checks the file systems, and performs other system initialization.
5. Then the init command refers to the ‘/etc/inittab’ script to get information about how to start the system, which system initialization script to run and bring the system to runlevel indicated in the ‘initab’ script.
6. After reading the ‘/etc/inittab’ script, init turns over the control to the rc.sysinit program which reads the ‘/etc/rc.d/init.d/functions’ file to determine the procedure to use to set the default system path, start and stop program.
7. Next script to run is ‘/etc/rc.d/rc’, which is responsible for starting and stopping services when the runlevel changes and determine the new runlevel.
Comments
Post a Comment