From c6b9dbfa9638f086e7fe94d3abf7ebdcc3defd55 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Tue, 16 May 2023 15:08:05 +0200 Subject: [PATCH] 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 --- pages/linux/systemd-analyze.md | 4 ++-- pages/linux/systemd-run.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/systemd-analyze.md b/pages/linux/systemd-analyze.md index 70ccda1cf..485867109 100644 --- a/pages/linux/systemd-analyze.md +++ b/pages/linux/systemd-analyze.md @@ -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: . +> More information: . -- List time of each unit to start up: +- List all running units, ordered by the time they took to initialize: `systemd-analyze blame` diff --git a/pages/linux/systemd-run.md b/pages/linux/systemd-run.md index 2faff670f..0ffca042a 100644 --- a/pages/linux/systemd-run.md +++ b/pages/linux/systemd-run.md @@ -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}}`