Boot Process
Overview
- Lilo
- The etc rc.d and init business
The Init Process
- The Init Process and run levels
- Init is the first process started, so it has an ID number of 1: run ps -aux
at command line
- 0: Halt the system
- 1: Enter single user mode
- 2: Multiuser mode, no NFS
- 3: Normal, or full multiuser mode
- 4: Unused
- 5: Same as 3, but start in GUI mode
- 6: Reboot the system
The rc.d Directory
- There is a subdirectory for each run level
- The etc/rc.d directory contains directories called rc0.d, rc1.d, rc2.d, rc3.d,
rc4.d and rc5.d
- The /etc/rc script decides which directory to call
- Directories have files with names in them like K01ppoe or S10network
- Each of these files are soft links. Use ln -s to create a softlink.
- The K stands for kill, the S for start
Customization
- You can customize the boot process by editing rc.local
- rc.local is always executed last
- For more advanced customization, you can change the boot process by creating
your links