/[smeserver]/rpms/runit/sme8/runit.svdown
ViewVC logotype

Contents of /rpms/runit/sme8/runit.svdown

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 12 20:53:19 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: runit-1_7_2-1_el5_sme, runit-2_0_0-1_el5_sme, HEAD
Import on branch sme8 of package runit-1.7.2-1.el5.sme.src.rpm

1 #!/bin/sh
2
3 [ -z $SV_TIMEOUT ] && export SV_TIMEOUT=300
4
5 # Check if this service is already down; avoids useless recursion
6 svisdown $1 && exit 0
7
8 if [ -d $1/downdeps ]; then
9 # We have dependencies to check
10
11 for DEPENDENCY in $1/downdeps/*; do
12 # start svdown in background so they will run in parallel
13 svdown $DEPENDENCY &
14 done
15
16 # Wait for all services to be down
17 svwaitdown -n -t $SV_TIMEOUT $1/downdeps/* || exit 111
18 fi
19
20 # actually stop the service
21 svc -d $1 || exit 111
22
23 exit 0
24

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed