X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fdebian%2Fcitadel.init;fp=citadel%2Fdebian%2Fcitadel.init;h=15dcdbf91039f8fdafc912c3921daa47cd9df25b;hb=336f678445773116177d0be29a5082c00c1132b0;hp=20f94888185e36b62d016351ffa014c7c2b59d0f;hpb=59eec193093ee770090fb60043330e7794a8d965;p=citadel.git diff --git a/citadel/debian/citadel.init b/citadel/debian/citadel.init index 20f948881..15dcdbf91 100644 --- a/citadel/debian/citadel.init +++ b/citadel/debian/citadel.init @@ -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