aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-04 14:57:51 +0000
committerRoy Marples <roy@marples.name>2007-10-04 14:57:51 +0000
commitbd83448633f7e3a2d9d37120090bf3e0460c059a (patch)
tree1c89bc7ec42fdf542d86559bee9c041525f96eec /sh
parent24e0790e388ae76fb2dde5fbd719ba3dc6b0325b (diff)
Document help and status
Diffstat (limited to 'sh')
-rwxr-xr-xsh/rc-help.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/sh/rc-help.sh b/sh/rc-help.sh
index 6c568f33..d90567e9 100755
--- a/sh/rc-help.sh
+++ b/sh/rc-help.sh
@@ -32,7 +32,7 @@ else
NL=
fi
-default_opts="describe start stop restart zap"
+default_opts="describe help start status stop restart zap"
extra_opts="$(. "${myscript}" 2>/dev/null ; echo "${opts}")"
if [ "${BE_VERBOSE}" = "yes" ] ; then
@@ -50,11 +50,17 @@ if [ "${BE_VERBOSE}" = "yes" ] ; then
printf "
${GREEN}describe${OFF}
Describe what the service and any extra options do.
+
+ ${GREEN}help${OFF}
+ This screen - duh.
${GREEN}start${OFF}
Start service, as well as the services it depends on (if not already
started).
+ ${GREEN}status${OFF}
+ Display the current status of the service.
+
${GREEN}stop${OFF}
Stop service, as well as the services that depend on it (if not already
stopped).
@@ -68,9 +74,6 @@ printf "
can be handled correctly. Refer to the portmap rc-script for an
example.
- ${GREEN}conditionalrestart|condrestart${OFF}
- Same as 'restart', but only if the service has already been started.
-
${GREEN}zap${OFF}
Reset a service that is currently stopped, but still marked as started,
to the stopped state. Basically for killing zombie services.