summaryrefslogtreecommitdiff
path: root/sh/runscript.sh.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2010-02-20 21:48:06 +0000
committerRoy Marples <roy@marples.name>2010-02-20 21:48:06 +0000
commit5c52e5beb588d87b1e267d0485b56a2609b5481f (patch)
tree5ae131370268f371a42aa9dd3edd482e26c11e83 /sh/runscript.sh.in
parentc0f5f2122c28aa16a45fada0f95743d795be5d53 (diff)
downloadopenrc-5c52e5beb588d87b1e267d0485b56a2609b5481f.tar.gz
openrc-5c52e5beb588d87b1e267d0485b56a2609b5481f.tar.bz2
openrc-5c52e5beb588d87b1e267d0485b56a2609b5481f.tar.xz
Fix rc_${rc_svcname}_need.
Display config depends in service depend function also.
Diffstat (limited to 'sh/runscript.sh.in')
-rw-r--r--sh/runscript.sh.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 4c60a1b..3d7252a 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -187,8 +187,14 @@ done
unset _f
while [ -n "$1" ]; do
+ # Sepcial case depend
+ if [ "$1" = depend ]; then
+ shift
+ _depend
+ continue
+ fi
# See if we have the required function and run it
- for _cmd in describe start stop status depend ${extra_commands:-$opts} \
+ for _cmd in describe start stop status ${extra_commands:-$opts} \
$extra_started_commands
do
if [ "$_cmd" = "$1" ]; then