mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 15:53:34 +02:00
openrc, rc-*: update page (#16081)
This commit is contained in:
parent
9ad7a23a36
commit
19ba9a0c25
4 changed files with 18 additions and 14 deletions
|
@ -10,4 +10,4 @@
|
||||||
|
|
||||||
- Change to a specific runlevel, but don't stop any existing services:
|
- Change to a specific runlevel, but don't stop any existing services:
|
||||||
|
|
||||||
`sudo openrc --no-stop {{runlevel_name}}`
|
`sudo openrc {{[-n|--no-stop]}} {{runlevel_name}}`
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
- Simulate running a service's custom command:
|
- Simulate running a service's custom command:
|
||||||
|
|
||||||
`sudo rc-service --dry-run {{service_name}} {{command_name}}`
|
`sudo rc-service {{[-Z|--dry-run]}} {{service_name}} {{command_name}}`
|
||||||
|
|
||||||
- Actually run a service's custom command:
|
- Actually run a service's custom command:
|
||||||
|
|
||||||
|
@ -30,4 +30,4 @@
|
||||||
|
|
||||||
- Resolve the location of a service definition on disk:
|
- Resolve the location of a service definition on disk:
|
||||||
|
|
||||||
`sudo rc-service --resolve {{service_name}}`
|
`sudo rc-service {{[-r|--resolve]}} {{service_name}}`
|
||||||
|
|
|
@ -10,24 +10,24 @@
|
||||||
|
|
||||||
- Include services in all runlevels in the summary:
|
- Include services in all runlevels in the summary:
|
||||||
|
|
||||||
`rc-status --all`
|
`rc-status {{[-a|--all]}}`
|
||||||
|
|
||||||
- List services that have crashed:
|
- List services that have crashed:
|
||||||
|
|
||||||
`rc-status --crashed`
|
`rc-status {{[-c|--crashed]}}`
|
||||||
|
|
||||||
- List manually started services:
|
- List manually started services:
|
||||||
|
|
||||||
`rc-status --manual`
|
`rc-status {{[-m|--manual]}}`
|
||||||
|
|
||||||
- List supervised services:
|
- List supervised services:
|
||||||
|
|
||||||
`rc-status --supervised`
|
`rc-status {{[-S|--supervised]}}`
|
||||||
|
|
||||||
- Get the current runlevel:
|
- Display the current runlevel:
|
||||||
|
|
||||||
`rc-status --runlevel`
|
`rc-status {{[-r|--runlevel]}}`
|
||||||
|
|
||||||
- List all runlevels:
|
- List all runlevels:
|
||||||
|
|
||||||
`rc-status --list`
|
`rc-status {{[-l|--list]}}`
|
||||||
|
|
|
@ -4,9 +4,13 @@
|
||||||
> See also `openrc`.
|
> See also `openrc`.
|
||||||
> More information: <https://manned.org/rc-update>.
|
> More information: <https://manned.org/rc-update>.
|
||||||
|
|
||||||
- List all services and the runlevels they are added to:
|
- List enabled services and the runlevels they are added to:
|
||||||
|
|
||||||
`rc-update show`
|
`rc-update`
|
||||||
|
|
||||||
|
- List all services:
|
||||||
|
|
||||||
|
`rc-update {{[-v|--verbose]}}`
|
||||||
|
|
||||||
- Add a service to a runlevel:
|
- Add a service to a runlevel:
|
||||||
|
|
||||||
|
@ -14,8 +18,8 @@
|
||||||
|
|
||||||
- Delete a service from a runlevel:
|
- Delete a service from a runlevel:
|
||||||
|
|
||||||
`sudo rc-update delete {{service_name}} {{runlevel}}`
|
`sudo rc-update {{[del|delete]}} {{service_name}} {{runlevel}}`
|
||||||
|
|
||||||
- Delete a service from all runlevels:
|
- Delete a service from all runlevels:
|
||||||
|
|
||||||
`sudo rc-update --all delete {{service_name}}`
|
`sudo rc-update {{[-a|--all]}} {{[del|delete]}} {{service_name}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue