Document help and status

This commit is contained in:
Roy Marples 2007-10-04 14:57:51 +00:00
parent 24e0790e38
commit bd83448633

View File

@ -32,7 +32,7 @@ else
NL= NL=
fi 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}")" extra_opts="$(. "${myscript}" 2>/dev/null ; echo "${opts}")"
if [ "${BE_VERBOSE}" = "yes" ] ; then if [ "${BE_VERBOSE}" = "yes" ] ; then
@ -50,11 +50,17 @@ if [ "${BE_VERBOSE}" = "yes" ] ; then
printf " printf "
${GREEN}describe${OFF} ${GREEN}describe${OFF}
Describe what the service and any extra options do. Describe what the service and any extra options do.
${GREEN}help${OFF}
This screen - duh.
${GREEN}start${OFF} ${GREEN}start${OFF}
Start service, as well as the services it depends on (if not already Start service, as well as the services it depends on (if not already
started). started).
${GREEN}status${OFF}
Display the current status of the service.
${GREEN}stop${OFF} ${GREEN}stop${OFF}
Stop service, as well as the services that depend on it (if not already Stop service, as well as the services that depend on it (if not already
stopped). stopped).
@ -68,9 +74,6 @@ printf "
can be handled correctly. Refer to the portmap rc-script for an can be handled correctly. Refer to the portmap rc-script for an
example. example.
${GREEN}conditionalrestart|condrestart${OFF}
Same as 'restart', but only if the service has already been started.
${GREEN}zap${OFF} ${GREEN}zap${OFF}
Reset a service that is currently stopped, but still marked as started, Reset a service that is currently stopped, but still marked as started,
to the stopped state. Basically for killing zombie services. to the stopped state. Basically for killing zombie services.