snippetbashTip
rc-service — Locate and run OpenRC services with arguments. See also: `openrc`. More information: <https://manned
Viewed 0 times
rc-servicecommandrunservicesandlocatecliopenrc
linux
Problem
How to use the
rc-service command: Locate and run OpenRC services with arguments. See also: openrc. More information: <https://manned.org/rc-service>.Solution
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}} statusStart a service:
sudo rc-service {{service_name}} startStop a service:
sudo rc-service {{service_name}} stopRestart a service:
sudo rc-service {{service_name}} restartSimulate running a service's custom command:
sudo rc-service {{[-Z|--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 {{[-r|--resolve]}} {{service_name}}Code Snippets
Show a service's status
rc-service {{service_name}} statusStart a service
sudo rc-service {{service_name}} startStop a service
sudo rc-service {{service_name}} stopRestart a service
sudo rc-service {{service_name}} restartSimulate running a service's custom command
sudo rc-service {{[-Z|--dry-run]}} {{service_name}} {{command_name}}Context
tldr-pages: linux/rc-service
Revisions (0)
No revisions yet.