]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Increment counter when waiting specified time for daemon to start/terminate.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 22 Mar 2005 16:54:42 +0000 (16:54 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 22 Mar 2005 16:54:42 +0000 (16:54 +0000)
svn-id: @5615

rc.d/init.d/functions

index 20987b553c21e418a0eef8d55ad225be65bff976..6cf17d0d78b614d1cec3733579b22a56563dc8ef 100644 (file)
@@ -504,6 +504,7 @@ daemon()
                        [ -z "$pid" ] && pid=$(pidofproc "$base" "$pidfile")
                        i=0
                        while [ "$i" -lt "$waittime" ]; do
+                               i=$(( i + 1 ))
                                checkpid $pid && sleep 1 || break
                        done
                fi
@@ -618,6 +619,7 @@ killproc()
        if [ -n "$waitname" -a -n "$waittime" ]; then
                i=0
                while [ "$i" -lt "$waittime" ]; do
+                       i=$(( i + 1 ))
                        checkpid $pid && sleep 1 || break
                done
        fi
This page took 0.24244 seconds and 4 git commands to generate.