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 RHEL 9, the PID 1 is run by systemd.
In Chapter 4, Tools for Regular Operations, we described service and target management with systemd. In this chapter, let’s review these 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 this with the systemctl
tool:
[root@rhel-instance ~]# systemctl reboot
We can see that the system will reboot. We can check how...