You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
editing 10-boot.md changes (and other items missed the first time around) (#2663)
* reword passive voice phrases
* auto-formatting of table handled by editor
* add missing fenced code block contexts
* consistently use system commands within back ticks
* other minor rewording
Systemd is the parent of all system processes. It reads the target of the `/etc/systemd/system/default.target` link (e.g., `/usr/lib/systemd/system/multi-user.target`) to determine the default target of the system. The file defines the services to be started.
81
+
`systemd` is the parent of all system processes. It reads the target of the `/etc/systemd/system/default.target` link (e.g., `/usr/lib/systemd/system/multi-user.target`) to determine the default target of the system. The file defines the services to start.
82
82
83
-
Systemd then places the system in the target-defined state by performing the following initialization tasks:
83
+
`systemd` then places the system in the target-defined state by performing the following initialization tasks:
84
84
85
85
1. Set the machine name
86
86
2. Initialize the network
@@ -113,18 +113,18 @@ To password protect the GRUB2 bootloader:
113
113
114
114
2. Paste the password ciphertext in the last line of the **/etc/grub.d/00_header** file. The pasted format is as follows:
115
115
116
-
```
116
+
```bash
117
117
cat <<EOF
118
118
set superusers='frank'
119
119
password_obkdf2 frank grub.pbkdf2.sha512.10000.D0182EDB28164C19454FA94421D1ECD6309F076F1135A2E5BFE91A5088BD9EC87687FE14794BE7194F67EA39A8565E868A41C639572F6156900C81C08C1E8413.40F6981C22F1F81B32E45EC915F2AB6E2635D9A62C0BA67105A9B900D9F365860E84F1B92B2EF3AA0F83CECC68E13BA9F4174922877910F026DED961F6592BB7
120
120
EOF
121
121
```
122
122
123
-
The 'frank' user can be replaced with any custom user.
123
+
You can replace the 'frank' user with any custom user.
124
124
125
125
You can also set a plaintext password, for example:
126
126
127
-
```
127
+
```bash
128
128
cat <<EOF
129
129
set superusers='frank'
130
130
password frank rockylinux8.x
@@ -135,7 +135,7 @@ To password protect the GRUB2 bootloader:
135
135
136
136
4. Restart the operating system to verify the encryption of GRUB2. Select the first boot menu item and type the ++"e"++ key, and then enter the corresponding user and password.
137
137
138
-
```
138
+
```bash
139
139
Enter username:
140
140
frank
141
141
Enter password:
@@ -146,10 +146,10 @@ To password protect the GRUB2 bootloader:
146
146
147
147
Sometimes you may see in some documents that the `grub2-set-password` (`grub2-setpassword`) command is used to protect the GRUB2 bootloader:
Log in to the operating system as the root user and execute the `gurb2-set-password`command as follows:
155
155
@@ -170,7 +170,7 @@ After executing the `grub2-set-password` command, the **/boot/grub2/user.cfg** f
170
170
171
171
Select the first boot menu item and type the ++"e"++ key, and then enter the corresponding user and password:
172
172
173
-
```
173
+
```bash
174
174
Enter username:
175
175
root
176
176
Enter password:
@@ -181,16 +181,16 @@ Enter password:
181
181
182
182
*Systemd* is a service manager for the Linux operating systems.
183
183
184
-
It is developed to:
184
+
The development of `systemd` was to:
185
185
186
186
* remain compatible with older SysV initialization scripts,
187
187
* provide many features, such as parallel start of system services at system startup, on-demand activation of daemons, support for snapshots, or management of dependencies between services.
188
188
189
189
!!! Note
190
190
191
-
Systemd is the default initialization system since RedHat/CentOS 7.
191
+
`systemd` is the default initialization system since RedHat/CentOS 7.
192
192
193
-
Systemd introduces the concept of unit files, also known as systemd units.
193
+
`systemd` introduces the concept of unit files, also known as `systemd` units.
@@ -202,25 +202,25 @@ Systemd introduces the concept of unit files, also known as systemd units.
202
202
203
203
There are many types of units: Device unit, Mount unit, Path unit, Scope unit, Slice unit, Snapshot unit, Socket unit, Swap unit, Timer unit.
204
204
205
-
*Systemd supports system state snapshots and restore.
205
+
*`systemd` supports system state snapshots and restore.
206
206
207
-
*Mount points can be configured as systemd targets.
207
+
*You can configure mount points as `systemd` targets.
208
208
209
-
* At startup, systemd creates listening sockets for all system services that support this type of activation and passes these sockets to these services as soon as they are started. This makes it possible to restart a service without losing a single message sent to it by the network during its unavailability. The corresponding socket remains accessible and all messages are queued.
209
+
* At startup, `systemd` creates listening sockets for all system services that support this type of activation and passes these sockets to these services as soon as they start. This makes it possible to restart a service without losing a single message sent to it by the network during its unavailability. The corresponding socket remains accessible all messages queue up.
210
210
211
-
* System services that use D-BUS for their inter-process communications can be started on demand the first timethey are used by a client.
211
+
* System services that use D-BUS for their inter-process communications can start on-demand the first timethe client uses them.
212
212
213
-
*Systemd stops or restarts only running services. Previous versions (before RHEL7) attempted to stop services directly without checking their current status.
213
+
*`systemd` stops or restarts only running services. Previous versions (before RHEL7) attempted to stop services directly without checking their current status.
214
214
215
215
* System services do not inherit any context (like HOME and PATH environment variables). Each service operates in its own execution context.
216
216
217
217
All service unit operations are subject to a default timeout of 5 minutes to prevent a malfunctioning service from freezing the system.
218
218
219
-
Due to space limitations, this document will not provide a very detailed introduction to Systemd. If you are interested inSystemd, we have provided a very detailed introduction in [this document](./16-about-sytemd.md),
219
+
Due to space limitations, this document will not provide a very detailed introduction to `systemd`. If you have an interest inexploring `systemd` further, there is a very detailed introduction in [this document](./16-about-sytemd.md),
220
220
221
221
### Managing system services
222
222
223
-
Service units end with the `.service` file extension and have a similar purpose to init scripts. The `systemctl`command is used to `display`, `start`, `stop`, `restart` a system service:
223
+
Service units end with the `.service` file extension and have a similar purpose to init scripts. The use of `systemctl`command is to `display`, `start`, `stop`, or`restart` a system service:
@@ -256,7 +256,7 @@ To list all units currently loaded:
256
256
systemctl list-units --type service
257
257
```
258
258
259
-
To list all units to check if they are activated:
259
+
To check the activation status of all units, you can list them with:
260
260
261
261
```bash
262
262
systemctl list-unit-files --type service
@@ -294,11 +294,11 @@ WantedBy=multi-user.target
294
294
295
295
### Using system targets
296
296
297
-
On Rocky8/RHEL8, the concept of run levels has been replaced by Systemd targets.
297
+
`systemd` targets replace the concept of run levels on Rocky8/RHEL8.
298
298
299
-
Systemd targets are represented by target units. Target units end with the `.target` file extension and their sole purpose is to group other Systemd units into a chain of dependencies.
299
+
The representation of `systemd` targets is by target units. Target units end with the `.target` file extension and their sole purpose is to group other `systemd` units into a chain of dependencies.
300
300
301
-
For example, the `graphical.target` unit, which is used to start a graphical session, starts system services such as the **GNOME display manager** (`gdm.service`) or the **accounts service** (`accounts-daemon.service`) and also activates the `multi-user.target` unit.
301
+
For example, the `graphical.target` unit that starts a graphical session, starts system services such as the **GNOME display manager** (`gdm.service`) or the **accounts service** (`accounts-daemon.service`) and also activates the `multi-user.target` unit.
302
302
303
303
Similarly, the `multi-user.target` unit starts other essential system services, such as **NetworkManager** (`NetworkManager.service`) or **D-Bus** (`dbus.service`) and activates another target unit named `basic.target`.
304
304
@@ -312,7 +312,7 @@ Similarly, the `multi-user.target` unit starts other essential system services,
312
312
313
313
#### The default target
314
314
315
-
To determine which target is used by default:
315
+
To determine the default target used by default:
316
316
317
317
```bash
318
318
systemctl get-default
@@ -383,7 +383,7 @@ To change the current target and enter `rescue mode` in the current session:
383
383
systemctl rescue
384
384
```
385
385
386
-
**Emergency mode** provides the most minimalist environment possible and allows the system to be repaired even in situations where the system is unable to enter rescue mode. In the emergency mode, the system mounts the root file system only for reading. It will not attempt to mount any other local file system, will not activate any network interface, and will start some essential services.
386
+
**Emergency mode** provides the most minimalist environment possible and allows the repairing of the system even in situations where the system is unable to enter rescue mode. In the emergency mode, the system mounts the root file system only for reading. It will not attempt to mount any other local file system, will not activate any network interface, and will start some essential services.
387
387
388
388
To change the current target and enter emergency mode in the current session:
389
389
@@ -393,7 +393,7 @@ systemctl emergency
393
393
394
394
#### Shutdown, suspension and hibernation
395
395
396
-
The `systemctl`command replaces a number of power management commands used in previous versions:
396
+
The `systemctl`command replaces many power management commands used in previous versions:
@@ -406,9 +406,9 @@ The `systemctl` command replaces a number of power management commands used in p
406
406
407
407
### The `journald` process
408
408
409
-
Log files can, in addition to `rsyslogd`, also be managed by the `journald` daemon which is a component of `systemd`.
409
+
You can manage log files can, in addition to `rsyslogd`, with the `journald` daemon that is a component of `systemd`.
410
410
411
-
The `journald` daemon captures Syslog messages, kernel log messages, messages from the initial RAM disk and from the start of boot, as well as messages written to the standard output and the standard error output of all services, then indexes them and makes them available to the user.
411
+
The `journald` daemon captures Syslog messages, kernel log messages, messages from the initial RAM disk and from the start of boot, and messages written to the standard output and the standard error output of all services, then indexes them and makes them available to the user.
412
412
413
413
The format of the native log file, which is a structured and indexed binary file, improves searches and allows for faster operation, it also stores metadata information, such as timestamps or user IDs.
414
414
@@ -422,10 +422,10 @@ journalctl
422
422
423
423
The command lists all log files generated on the system. The structure of this output is similar to that used in`/var/log/messages/` but it offers some improvements:
424
424
425
-
* the priority of entries is marked visually;
426
-
*timestamps are converted to the localtime zone of your system;
427
-
* all logged data is displayed, including rotating logs;
428
-
* the beginning of a start is marked with a special line.
425
+
*shows the priority of entries is visually marked
426
+
*shows the conversion of timestamps to the localtime zone of your system
427
+
* all logged data is displayed, including rotating logs
428
+
*shows the marking of the beginning of a start with a special line
429
429
430
430
#### Using continuous display
431
431
@@ -435,7 +435,7 @@ With continuous display, log messages are displayed in real time.
435
435
journalctl -f
436
436
```
437
437
438
-
This command returns a list of the ten most recent log lines. The journalctl utility then continues to run and waits for new changes to occur before displaying them immediately.
438
+
This command returns a list of the ten most recent log lines. The `journalctl` utility then continues to run and waits for new changes to occur before displaying them immediately.
0 commit comments