mirror of https://github.com/CrimsonTome/tldr.git
systemd-analyze, systemd-run: update page (#10105)
* systemd-run: change 'executable' placeholders to 'command' for consistency * systemd-analyze: update page * systemd-run: remove double spacepull/23/head
parent
89496f5e28
commit
c6b9dbfa96
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
> Analyze and debug system manager.
|
> Analyze and debug system manager.
|
||||||
> Show timing details about the boot process of units (services, mount points, devices, sockets).
|
> 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`
|
`systemd-analyze blame`
|
||||||
|
|
||||||
|
|
|
@ -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:
|
- 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:
|
- 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:
|
- Use the program in a shell pipeline:
|
||||||
|
|
||||||
`{{executable1}} | systemd-run --pipe {{executable2}} | {{executable3}}`
|
`{{command1}} | systemd-run --pipe {{command2}} | {{command3}}`
|
||||||
|
|
Loading…
Reference in New Issue