summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/rc-help.sh')
-rwxr-xr-xsbin/rc-help.sh20
1 files changed, 19 insertions, 1 deletions
diff --git a/sbin/rc-help.sh b/sbin/rc-help.sh
index 499af88..2a28859 100755
--- a/sbin/rc-help.sh
+++ b/sbin/rc-help.sh
@@ -50,7 +50,8 @@ ${CYAN}Options:${OFF}
${GREEN}pause${OFF}
Same as 'stop', but the services that depends on it, will not be
- stopped.
+ 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,
@@ -155,6 +156,23 @@ ${CYAN}Dependencies:${OFF}
recommend using it with the 'need' or 'use' dependency type ... you have
been warned!
+${CYAN}'net' Dependency and 'net.*' Services:${OFF}
+ Example:
+
+ depend() {
+ need net
+ }
+
+ This is a special dependency of type 'need'. It represents a state where
+ a network interface or interfaces besides lo is up and active. Any service
+ starting with 'net.' will be treated as a part of the 'net' dependency,
+ if:
+
+ 1. It is part of the 'boot' runlevel
+ 2. It is part of the current runlevel
+
+ A few examples are the /etc/init.d/net.eth0 and /etc/init.d/net.lo services.
+
${CYAN}Configuration files:${OFF}
There are two files which will be sourced for possible configuration by
the rc-scripts. They are (sourced from top to bottom):