Skip to content

Commit 19ba9a0

Browse files
authored
openrc, rc-*: update page (#16081)
1 parent 9ad7a23 commit 19ba9a0

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

Diff for: pages/linux/openrc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
- Change to a specific runlevel, but don't stop any existing services:
1212

13-
`sudo openrc --no-stop {{runlevel_name}}`
13+
`sudo openrc {{[-n|--no-stop]}} {{runlevel_name}}`

Diff for: pages/linux/rc-service.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222

2323
- Simulate running a service's custom command:
2424

25-
`sudo rc-service --dry-run {{service_name}} {{command_name}}`
25+
`sudo rc-service {{[-Z|--dry-run]}} {{service_name}} {{command_name}}`
2626

2727
- Actually run a service's custom command:
2828

2929
`sudo rc-service {{service_name}} {{command_name}}`
3030

3131
- Resolve the location of a service definition on disk:
3232

33-
`sudo rc-service --resolve {{service_name}}`
33+
`sudo rc-service {{[-r|--resolve]}} {{service_name}}`

Diff for: pages/linux/rc-status.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@
1010

1111
- Include services in all runlevels in the summary:
1212

13-
`rc-status --all`
13+
`rc-status {{[-a|--all]}}`
1414

1515
- List services that have crashed:
1616

17-
`rc-status --crashed`
17+
`rc-status {{[-c|--crashed]}}`
1818

1919
- List manually started services:
2020

21-
`rc-status --manual`
21+
`rc-status {{[-m|--manual]}}`
2222

2323
- List supervised services:
2424

25-
`rc-status --supervised`
25+
`rc-status {{[-S|--supervised]}}`
2626

27-
- Get the current runlevel:
27+
- Display the current runlevel:
2828

29-
`rc-status --runlevel`
29+
`rc-status {{[-r|--runlevel]}}`
3030

3131
- List all runlevels:
3232

33-
`rc-status --list`
33+
`rc-status {{[-l|--list]}}`

Diff for: pages/linux/rc-update.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,22 @@
44
> See also `openrc`.
55
> More information: <https://manned.org/rc-update>.
66
7-
- List all services and the runlevels they are added to:
7+
- List enabled services and the runlevels they are added to:
88

9-
`rc-update show`
9+
`rc-update`
10+
11+
- List all services:
12+
13+
`rc-update {{[-v|--verbose]}}`
1014

1115
- Add a service to a runlevel:
1216

1317
`sudo rc-update add {{service_name}} {{runlevel}}`
1418

1519
- Delete a service from a runlevel:
1620

17-
`sudo rc-update delete {{service_name}} {{runlevel}}`
21+
`sudo rc-update {{[del|delete]}} {{service_name}} {{runlevel}}`
1822

1923
- Delete a service from all runlevels:
2024

21-
`sudo rc-update --all delete {{service_name}}`
25+
`sudo rc-update {{[-a|--all]}} {{[del|delete]}} {{service_name}}`

0 commit comments

Comments
 (0)