Skip to content

Commit b85b5ea

Browse files
authored
Revise some text errors and precise text descriptions (#2678)
1 parent e6f44b9 commit b85b5ea

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/books/admin_guide/10-boot.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ The next 64 bytes contain the partition table of the disk.
4545

4646
The Rocky 8 distribution's default bootloader is **GRUB2** (GRand Unified Bootloader). GRUB2 replaces the old GRUB bootloader (also called GRUB legacy).
4747

48-
You can locate the GRUB 2 configuration file under `/boot/grub2/grub.cfg`, but you should not edit this file directly.
48+
You can locate the GRUB2 configuration file under `/boot/grub2/grub.cfg`, but you should not edit this file directly.
4949

50-
You can find the GRUB2 menu configuration settings under `/etc/default/grub`. The `grub2-mkdconfig` command uses these to generate the `grub.cfg` file.
50+
You can find the GRUB2 menu configuration settings under `/etc/default/grub`. The `grub2-mkconfig` command uses these to generate the `grub.cfg` file.
5151

5252
```bash
5353
# cat /etc/default/grub
@@ -220,24 +220,24 @@ Due to space limitations, this document will not provide a detailed introduction
220220
221221
### Managing system services
222222
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:
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. Except for very few cases, the `systemctl` single line command can operate on one or more units in most cases (not limited to the unit type of ".service"). You can view it through the help system.
224224
225225
| systemctl | Description |
226226
|-------------------------------------------|-----------------------------------------|
227-
| systemctl start *name*.service | Starts a service |
228-
| systemctl stop *name*.service | Stops a service |
229-
| systemctl restart *name*.service | Restarts a service |
230-
| systemctl reload *name*.service | Reloads a configuration |
231-
| systemctl status *name*.service | Checks if a service is running |
232-
| systemctl try-restart *name*.service | Restarts a service only if it is running |
227+
| systemctl start *name*.service ... | Start one or more services |
228+
| systemctl stop *name*.service ... | Stop one or more services |
229+
| systemctl restart *name*.service ... | Restart one or more services |
230+
| systemctl reload *name*.service ... | Reload one or more services |
231+
| systemctl status *name*.service ... | Check one or more services status |
232+
| systemctl try-restart *name*.service ... | Restart one or more services (If they are running) |
233233
| systemctl list-units --type service --all | Displays the status of all services |
234234
235235
The `systemctl` command is also used for the `enable` or `disable` of a system service and displaying associated services:
236236
237237
| systemctl | Description |
238238
|------------------------------------------|---------------------------------------------------------|
239-
| systemctl enable *name*.service | Activates a service |
240-
| systemctl disable *name*.service | Disables a service |
239+
| systemctl enable *name*.service ... | Activates one or more services |
240+
| systemctl disable *name*.service ... | Disables one or more services |
241241
| systemctl list-unit-files --type service | Lists all services and checks if they are running |
242242
| systemctl list-dependencies --after | Lists the services that start before the specified unit |
243243
| systemctl list-dependencies --before | Lists the services that start after the specified unit |

0 commit comments

Comments
 (0)