systemctl*: refresh argument order (#18548)

This commit is contained in:
Managor
2025-10-08 23:20:53 +03:00
committed by GitHub
parent b74a9e17e5
commit ed051db7bd
22 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -13,4 +13,4 @@
- Add a user-level `Requires` dependency:
`systemctl --user add-requires {{target}} {{unit}}`
`systemctl add-requires {{target}} {{unit}} --user`
+1 -1
View File
@@ -13,4 +13,4 @@
- Add a user-level `Wants` dependency:
`systemctl --user add-wants {{target}} {{unit}}`
`systemctl add-wants {{target}} {{unit}} --user`
+2 -2
View File
@@ -13,8 +13,8 @@
- Bind-mount a path as read-only inside the unit:
`systemctl bind --read-only {{unit}} /{{path/to/host_directory}}`
`systemctl bind {{unit}} /{{path/to/host_directory}} --read-only`
- Create the destination path inside the unit before binding:
`systemctl bind --mkdir {{unit}} /{{path/to/host_directory}} /{{path/to/unit_directory}}`
`systemctl bind {{unit}} /{{path/to/host_directory}} /{{path/to/unit_directory}} --mkdir`
+1 -1
View File
@@ -17,4 +17,4 @@
- Cancel a job in the user service manager:
`systemctl cancel --user {{job_id}}`
`systemctl cancel {{job_id}} --user`
+1 -1
View File
@@ -17,4 +17,4 @@
- Show the contents of a user unit file:
`systemctl cat --user {{unit}}`
`systemctl cat {{unit}} --user`
+2 -2
View File
@@ -9,8 +9,8 @@
- Stop a service from running on boot and stop its current execution:
`systemctl disable --now {{unit}}`
`systemctl disable {{unit}} --now`
- Stop a user service from running on login:
`systemctl disable --user {{unit}}`
`systemctl disable {{unit}} --user`
+3 -3
View File
@@ -9,12 +9,12 @@
- Edit an unit file:
`sudo systemctl edit {{[-l|--full]}} {{unit_file}}`
`sudo systemctl edit {{unit_file}} {{[-l|--full]}}`
- Create a new unit file:
`sudo systemctl edit {{[-lf|--full --force]}} {{unit_file}}`
`sudo systemctl edit {{unit_file}} {{[-lf|--full --force]}}`
- Overlay a user unit file:
`systemctl edit --user {{unit_file}}`
`systemctl edit {{unit_file}} --user`
+2 -2
View File
@@ -9,8 +9,8 @@
- Enable a service to run on boot and start it now:
`systemctl enable --now {{unit}}`
`systemctl enable {{unit}} --now`
- Enable a user unit to run on login:
`systemctl enable --user {{unit}}`
`systemctl enable {{unit}} --user`
+2 -2
View File
@@ -5,11 +5,11 @@
- Exit the user service manager:
`systemctl --user exit`
`systemctl exit --user`
- Exit the user service manager with a specific exit code:
`systemctl --user exit {{code}}`
`systemctl exit {{code}} --user`
- Ask the containers service manager to exit (equivalent of `systemctl poweroff` if not in a container):
+2 -2
View File
@@ -13,8 +13,8 @@
- Check whether a unit is active without printing the state to `stdout`:
`systemctl is-active {{[-q|--quiet]}} {{unit}}`
`systemctl is-active {{unit}} {{[-q|--quiet]}}`
- Check whether a user unit is active:
`systemctl is-active --user {{unit}}`
`systemctl is-active {{unit}} --user`
+2 -2
View File
@@ -9,8 +9,8 @@
- Ensure that the service is shut down while masking:
`systemctl mask --now {{service_name}}`
`systemctl mask {{service_name}} --now`
- Mask a user service:
`sysemctl mask --user {{service_name}}`
`systemctl mask {{service_name}} --user`
+1 -1
View File
@@ -14,4 +14,4 @@
- Reload a service for the current user:
`systemctl --user reload {{pipewire}}`
`systemctl reload {{pipewire}} --user`
+1 -1
View File
@@ -14,4 +14,4 @@
- Restart a user unit:
`systemctl restart --user {{unit}}`
`systemctl restart {{unit}} --user`
+1 -1
View File
@@ -13,4 +13,4 @@
- Set an environment variable for the user service manager:
`systemctl --user set-environment {{var value}}`
`systemctl set-environment {{var value}} --user`
+2 -2
View File
@@ -17,7 +17,7 @@
- Show properties of a specific user unit:
`systemctl show --user {{unit}}`
`systemctl show {{unit}} --user`
- Include empty properties in the list:
@@ -25,4 +25,4 @@
- Only show the specified properties:
`systemctl show {{[-p|--property]}} {{Wants,Conflicts,...}} {{unit}}`
`systemctl show {{unit}} {{[-p|--property]}} {{Wants,Conflicts,...}}`
+1 -1
View File
@@ -9,4 +9,4 @@
- Start a user unit:
`systemctl start --user {{unit}}`
`systemctl start {{unit}} --user`
+1 -1
View File
@@ -29,4 +29,4 @@
- Show the status of a user unit:
`systemctl status --user {{unit}}`
`systemctl status {{unit}} --user`
+2 -2
View File
@@ -9,8 +9,8 @@
- Stop a service and suppress warnings:
`systemctl stop --no-warn {{unit}}`
`systemctl stop {{unit}} --no-warn`
- Stop a user unit:
`systemctl stop --user {{unit}}`
`systemctl stop {{unit}} --user`
+1 -1
View File
@@ -13,4 +13,4 @@
- Switch to a new root filesystem with verbose output:
`systemctl --verbose switch-root {{path/to/new_root}}`
`systemctl switch-root {{path/to/new_root}} --verbose`
+2 -2
View File
@@ -10,8 +10,8 @@
- Unmask and start a service immediately:
`systemctl unmask --now {{service_name}}`
`systemctl unmask {{service_name}} --now`
- Unmask a user service:
`systemctl unmask --user {{service_name}}`
`systemctl unmask {{service_name}} --user`
+1 -1
View File
@@ -14,4 +14,4 @@
- Unset an environment variable in the user service manager:
`systemctl --user unset-environment {{var}}`
`systemctl unset-environment {{var}} --user`
+1 -1
View File
@@ -10,7 +10,7 @@
- Show the unit of the current shell in user service manager (services managed for your login session):
`systemctl --user whoami`
`systemctl whoami --user`
- Show the unit a specific process belongs to: