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

Contents of /rpms/runit/sme9/runit.svdown

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


Revision 1.1 - (show annotations) (download)
Fri Jan 25 18:40:43 2013 UTC (11 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: runit-2_0_0-1_el6_sme, runit-2_1_2-1_el6_sme, HEAD
Initial import

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