Managing the boot sequence with systemd
We have already learned how the firmware of the system will take care of pointing at a disk to run the operating system loader, which in RHEL is GRUB.
GRUB will load the kernel and initrd to prepare the system to start. Then it's time to start the first process of the system, also referred to as process 1 or PID 1 (PID stands for process identifier). This process has to take care of loading all the required services in the system efficiently. In RHEL8, the PID 1 is run by systemd.
In Chapter 4, Tools for Regular Operations, we described services and targets management with systemd. Let's review in this chapter its interactions with the boot sequence.
The first two things related to the boot sequence that we can do with systemd are to reboot the system and to power it off. We will do it with the systemctl
tool:
[root@rhel8 ~]# systemctl reboot
We will see that the system will reboot. We can check how long the system has...