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
This commit is contained in:
Lena
2023-05-16 15:08:05 +02:00
committed by GitHub
parent 89496f5e28
commit c6b9dbfa96
2 changed files with 5 additions and 5 deletions

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}}`