2020-01-27 13:13:47 +00:00
|
|
|
# rc-service
|
|
|
|
|
|
|
|
> Locate and run OpenRC services with arguments.
|
|
|
|
> See also `openrc`.
|
2022-01-27 14:23:46 +00:00
|
|
|
> More information: <https://manned.org/rc-service>.
|
2020-01-27 13:13:47 +00:00
|
|
|
|
|
|
|
- Show a service's status:
|
|
|
|
|
|
|
|
`rc-service {{service_name}} status`
|
|
|
|
|
|
|
|
- Start a service:
|
|
|
|
|
|
|
|
`sudo rc-service {{service_name}} start`
|
|
|
|
|
|
|
|
- Stop a service:
|
|
|
|
|
2022-07-19 15:15:32 +01:00
|
|
|
`sudo rc-service {{service_name}} stop`
|
2020-01-27 13:13:47 +00:00
|
|
|
|
|
|
|
- Restart a service:
|
|
|
|
|
|
|
|
`sudo rc-service {{service_name}} restart`
|
|
|
|
|
|
|
|
- Simulate running a service's custom command:
|
|
|
|
|
|
|
|
`sudo rc-service --dry-run {{service_name}} {{command_name}}`
|
|
|
|
|
|
|
|
- Actually run a service's custom command:
|
|
|
|
|
|
|
|
`sudo rc-service {{service_name}} {{command_name}}`
|
|
|
|
|
|
|
|
- Resolve the location of a service definition on disk:
|
|
|
|
|
|
|
|
`sudo rc-service --resolve {{service_name}}`
|