diff --git a/pages/linux/openrc.md b/pages/linux/openrc.md index b7d2a6c1c6..c412792291 100644 --- a/pages/linux/openrc.md +++ b/pages/linux/openrc.md @@ -10,4 +10,4 @@ - 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}}` diff --git a/pages/linux/rc-service.md b/pages/linux/rc-service.md index 8c23792d66..3cef42b9d8 100644 --- a/pages/linux/rc-service.md +++ b/pages/linux/rc-service.md @@ -22,7 +22,7 @@ - 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: @@ -30,4 +30,4 @@ - Resolve the location of a service definition on disk: -`sudo rc-service --resolve {{service_name}}` +`sudo rc-service {{[-r|--resolve]}} {{service_name}}` diff --git a/pages/linux/rc-status.md b/pages/linux/rc-status.md index 3823e6df5c..544ed8d36b 100644 --- a/pages/linux/rc-status.md +++ b/pages/linux/rc-status.md @@ -10,24 +10,24 @@ - Include services in all runlevels in the summary: -`rc-status --all` +`rc-status {{[-a|--all]}}` - List services that have crashed: -`rc-status --crashed` +`rc-status {{[-c|--crashed]}}` - List manually started services: -`rc-status --manual` +`rc-status {{[-m|--manual]}}` - 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: -`rc-status --list` +`rc-status {{[-l|--list]}}` diff --git a/pages/linux/rc-update.md b/pages/linux/rc-update.md index 99a3c46b2c..d7f7f2ff2a 100644 --- a/pages/linux/rc-update.md +++ b/pages/linux/rc-update.md @@ -4,9 +4,13 @@ > See also `openrc`. > More information: . -- 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: @@ -14,8 +18,8 @@ - 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: -`sudo rc-update --all delete {{service_name}}` +`sudo rc-update {{[-a|--all]}} {{[del|delete]}} {{service_name}}`