]> git.pld-linux.org Git - packages/pound.git/commitdiff
- no need to check syntax of all pounds are down on restart
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 14 Jan 2009 16:34:37 +0000 (16:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    pound.init -> 1.21

pound.init

index 8b4100439ca04e84386c0ccedd9e0089204524cd..f0dfa177455f75bffd75e8f4c9d2488f117dd612 100644 (file)
@@ -129,17 +129,20 @@ stop() {
 restart() {
        local instance
 
-       # make up list of configured and up instances
-       local list
-       show "Checking configuration"; busy
-       for instance in $POUND_INSTANCES; do
-               # skip ones whose config fails
-               configtest $instance || continue
-               list="$list $instance"
-       done
-       ok
+       if any_up; then
+               # make up list of configured and up instances
+               local list
+               show "Checking configuration"; busy
+               for instance in $POUND_INSTANCES; do
+                       # skip ones whose config fails
+                       configtest $instance || continue
+                       list="$list $instance"
+               done
+               ok
+
+               POUND_INSTANCES=$list
 
-       POUND_INSTANCES=$list
+       fi
 
        stop
        start
This page took 0.115913 seconds and 4 git commands to generate.