diff options
author | Roy Marples <roy@marples.name> | 2007-07-10 19:09:41 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-07-10 19:09:41 +0000 |
commit | 05201b514b99d636af8067e442b2c6ab04e6d530 (patch) | |
tree | 9f41b80b1540b297ba38adc294cb700f92af4aa6 /sh/rc-help.sh | |
parent | 445918685e559babf219cbfc775b9c582b52a2fc (diff) |
init scripts and their extra options can now have descriptions, #184327.
Diffstat (limited to 'sh/rc-help.sh')
-rwxr-xr-x | sh/rc-help.sh | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sh/rc-help.sh b/sh/rc-help.sh index 97ca53f4..8edbb8ef 100755 --- a/sh/rc-help.sh +++ b/sh/rc-help.sh @@ -32,7 +32,7 @@ else NL= fi -default_opts="start stop restart pause zap" +default_opts="describe start stop restart pause zap" extra_opts="$(. "${myscript}" 2>/dev/null ; echo "${opts}")" if [ "${BE_VERBOSE}" = "yes" ] ; then @@ -48,6 +48,9 @@ ${CYAN}Normal Options:${OFF}" if [ "${BE_VERBOSE}" = "yes" ] ; then printf " + ${GREEN}describe${OFF} + Describe what the service and any extra options do. + ${GREEN}start${OFF} Start service, as well as the services it depends on (if not already started). @@ -68,11 +71,6 @@ printf " ${GREEN}conditionalrestart|condrestart${OFF} Same as 'restart', but only if the service has already been started. - ${GREEN}pause${OFF} - Same as 'stop', but the services that depends on it, will not be - stopped. This is useful for stopping a network interface without - stopping all the network services that depend on 'net'. - ${GREEN}zap${OFF} Reset a service that is currently stopped, but still marked as started, to the stopped state. Basically for killing zombie services. |