Usage: rc-update [options] add [...]or: rc-update [options] del [...]or: rc-update [options] [show [...]]Options: [ asuChqVv ]-a, --all Process all runlevels-s, --stack Stack a runlevel instead of a service-u, --update Force an update of the dependency tree-h, --help Display this help outputrc-status-C, --nocolor Disable color output-V, --version Display software version-v, --verbose Run verbosely-q, --quiet Run quietly (repeat to suppress errors)
Usage: rc-status [options] ...or: rc-status [options] [-a | -c | -l | -r | -s | -u]Options: [ aclrsuChqVv ]-a, --all Show services from all run levels-c, --crashed Show crashed services-l, --list Show list of run levels-r, --runlevel Show the name of the current runlevel-s, --servicelist Show service list-u, --unused Show services not assigned to any runlevel-h, --help Display this help output-C, --nocolor Disable color output-V, --version Display software version-v, --verbose Run verbosely-q, --quiet Run quietly (repeat to suppress errors)
使用实例
$ rc-status #检查默认运行级别的状态$ rc-status -a #检查所有运行级别的状态
rc-service
rc-service主用于管理服务的状态
rc-service语法格式
Usage: rc-service [options] [-i] ...or: rc-service [options] -eor: rc-service [options] -lor: rc-service [options] -rOptions: [ e:ilr:INChqVv ]-e, --exists tests if the service exists or not-i, --ifexists if the service exists then run the command-I, --ifinactive if the service is inactive then run the command-N, --ifnotstarted if the service is not started then run the command-l, --list list all available services-r, --resolve resolve the service name to an init script-h, --help Display this help output-C, --nocolor Disable color output-V, --version Display software version-v, --verbose Run verbosely-q, --quiet Run quietly (repeat to suppress errors)
Usage: openrc [options] []Options: [ a:no:s:SChqVv ]-n, --no-stop do not stop any services-o, --override override the next runlevel to change intowhen leaving single user or boot runlevels-s, --service runs the service specified with the restof the arguments-S, --sys output the RC system type, if any-h, --help Display this help output-C, --nocolor Disable color output-V, --version Display software version-v, --verbose Run verbosely-q, --quiet Run quietly (repeat to suppress errors)