3 Basic Commands and Simple Shell Scripts Once you have your first Red Hat Enterprise Linux rhel



Download 1.85 Mb.
View original pdf
Page35/67
Date26.02.2024
Size1.85 Mb.
#63678
1   ...   31   32   33   34   35   36   37   38   ...   67
Pablo Iranzo Gómez, Pedro Ibáñez Requena, Miguel Pérez Colino, Scott McCarty - Red Hat Enterprise Linux 9 Administration-Packt Publishing (2022) -chap 3 82 - 180
Important Note
systemd redesigned the process to focus on simplicity start fewer processes and do more parallel execution. The idea itself sounds easy but requires redesigning a lot of what was taken for granted in the past, to focus on the needs of anew approach to improve operating system performance.
This redesign, which has provided a lot of benefits, also came with a cost it drastically changed the way systems booted, so there has been a lot of controversy on the adoption of systemd by different vendors, and even some efforts by the community to provide systemd-free variants.

Managing system services with systemd
105
Rationalizing how services start so that only those that are required are started is a good way to accomplish efficiency—for example, there is no need to start Bluetooth, printer, or network services when the system is disconnected, there is no Bluetooth hardware, or no one is printing. With fewer services waiting to start, the system boot is not delayed by those waits and focuses on the ones that really need attention.
On top of that, parallel execution allows us to have each service taking the time it needs to get ready but not make others wait, so in general, running services initialization in parallel allows us to maximize the usage of the central processing unit (CPU), disk, and soon, and the wait times for each service are used by other services that are active.
systemd also pre-creates listening sockets before the actual daemon is started, so services that have requirements on other services can be started and be on await status until their dependencies are started. This is done without them losing any messages that are sent to them, so when the service is finally started, it will act on all pending actions.
Let’s learn a bit more about systemd as it will be required for several operations we’re going to describe in this chapter.
systemd comes with the concept of units, which are nothing but configuration files. These units can be categorized as different types, based on their file extension, as illustrated in the following screenshot:
Table 4.1 – systemd unit types description

Tools for Regular Operations
106

Download 1.85 Mb.

Share with your friends:
1   ...   31   32   33   34   35   36   37   38   ...   67




The database is protected by copyright ©ininet.org 2024
send message

    Main page