1 System Initialization
1 System Initialization
SYSTEM INITIALIZATION
BIOS Initialization
Boot Loader
Kernel initialization
/etc/rc.d/rc.sysinit
/etc/rc.d/rc.local
- BIOS Initialization
- Boot Loader
Label, kernel location, OS root filesystem and location of the initial ramdisk (initrd)
/boot/grub/grub.conf
Changes to grub.conf take effect immediately
/sbin/grub-install /dev/hda
- kernel Initialization
Device detection
- init process
/etc/inittab
Run Levels
/sbin/runlevel
0 - halt
4 - unused
5 - X11
6 - reboot
- /etc/rc.d/rc.sysinit
Activate udev and selinux
Sets hostname
Ex: ll /etc/rc.d/rc3.d/
ll /etc/rc.d/rc5.d/
- /etc/rc.d/rc.local
This script will be executed after all the other init scripts
- X display
- Controlling services
chkconfig telnet on
system-config-services
ntsysv
ntsysv --level 35
chkconfig
chkconfig --list
chkconfig <service> --list
- System Shutdown
shutdown -h now
halt
poweroff
init 0
- System Reboot
shutdown -r now
reboot
init 6