Skip to content

rc-service

Locate and run an OpenRC service with the given arguments


Long Options

set xtrace when running the command

rc-service --debug

ignore dependencies

rc-service --nodeps

tests if the service exists or not

rc-service --exists

if the service is crashed run the command

rc-service --ifcrashed

if the service exists run the command

rc-service --ifexists

if the service is inactive run the command

rc-service --ifinactive

if the service is not started run the command

rc-service --ifnotstarted

if the service is started run the command

rc-service --ifstarted

if the service is stopped run the command

rc-service --ifstopped

list all available services

rc-service --list

resolve the service name to an init script

rc-service --resolve

dry run (show what would happen)

rc-service --dry-run

Display this help output

rc-service --help

Disable color output

rc-service --nocolor

Display software version

rc-service --version

Run verbosely

rc-service --verbose

Run quietly (repeat to suppress errors)

rc-service --quiet

Run in user mode

rc-service --user

Short Options

set xtrace when running the command

rc-service -d

ignore dependencies

rc-service -D

tests if the service exists or not

rc-service -e

if the service is crashed run the command

rc-service -c

if the service exists run the command

rc-service -i

if the service is inactive run the command

rc-service -I

if the service is not started run the command

rc-service -N

if the service is started run the command

rc-service -s

if the service is stopped run the command

rc-service -S

list all available services

rc-service -l

resolve the service name to an init script

rc-service -r

dry run (show what would happen)

rc-service -Z

Display this help output

rc-service -h

Disable color output

rc-service -C

Display software version

rc-service -V

Run verbosely

rc-service -v

Run quietly (repeat to suppress errors)

rc-service -q

Run in user mode

rc-service -U