* to much c-coding spoilz bash-sk1lz
authorWilfried Göesgens <willi@citadel.org>
Tue, 13 Nov 2007 17:43:10 +0000 (17:43 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 13 Nov 2007 17:43:10 +0000 (17:43 +0000)
citadel/debian/citadel.init

index 20f94888185e36b62d016351ffa014c7c2b59d0f..15dcdbf91039f8fdafc912c3921daa47cd9df25b 100644 (file)
@@ -74,15 +74,15 @@ do_stop()
        #   other if a failure occurred
         if $SENDCOMMAND "DOWN" >/dev/null 2>&1 ; then
            rm -f $PIDFILE
-           count=1;
+           count=0;
            while test -S /var/run/citadel/citadel.socket; do 
                count=$(($count+1))
                sleep 1
                echo -n "."
-               if test "$count" == "10"; then
+               if test "$count" = "10"; then
                    killall citserver
                fi
-               if test "$count" == "20"; then
+               if test "$count" = "20"; then
                    killall -9 citserver
                    rm -rf /var/run/citadel/*
                fi