Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

38
linux/rc-service Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# rc-service
> Locate and run OpenRC services with arguments.
> See also `openrc`.
> More information: <https://manned.org/rc-service>.
- Show a service's status:
`rc-service {{service_name}} status`
- Start a service:
`sudo rc-service {{service_name}} start`
- Stop a service:
`sudo rc-service {{service_name}} stop`
- 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}}`