systemd-analyze, systemd-run: update page (#10105)

* systemd-run: change 'executable' placeholders to 'command' for consistency

* systemd-analyze: update page

* systemd-run: remove double space
pull/23/head
Lena 2023-05-16 15:08:05 +02:00 committed by GitHub
parent 89496f5e28
commit c6b9dbfa96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -2,9 +2,9 @@
> Analyze and debug system manager.
> Show timing details about the boot process of units (services, mount points, devices, sockets).
> More information: <https://manned.org/systemd-analyze>.
> More information: <https://www.freedesktop.org/software/systemd/man/systemd-analyze.html>.
- List time of each unit to start up:
- List all running units, ordered by the time they took to initialize:
`systemd-analyze blame`

View File

@ -25,12 +25,12 @@
- Share the terminal with the program (allowing interactive input/output) and make sure the execution details remain after the program exits:
`systemd-run --remain-after-exit --pty {{executable}}`
`systemd-run --remain-after-exit --pty {{command}}`
- Set properties (e.g. CPUQuota, MemoryMax) of the process and wait until it exits:
`systemd-run --property MemoryMax={{memory_in_bytes}} --property CPUQuota={{percentage_of_CPU_time}}% --wait {{executable}}`
`systemd-run --property MemoryMax={{memory_in_bytes}} --property CPUQuota={{percentage_of_CPU_time}}% --wait {{command}}`
- Use the program in a shell pipeline:
`{{executable1}} | systemd-run --pipe {{executable2}} | {{executable3}}`
`{{command1}} | systemd-run --pipe {{command2}} | {{command3}}`