Fixed Debian init script

This commit is contained in:
Michiel Broek 2007-09-02 12:50:32 +00:00
parent 8d4cf65939
commit 2166d0575f

View File

@ -50,15 +50,16 @@ case "$1" in
echo -n "logoff users "
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null
echo -n " stopping mbtask"
kill `cat $MBSE_ROOT/var/run/mbtask`
pid=$( cat $MBSE_ROOT/var/run/mbtask )
kill $pid
i=10
doit=1
while let 'i > 0' && let 'doit != 0'
while [ $i -gt 0 ] && [ $doit = 1 ]
do
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
echo -n "."
sleep 1
let i=i-1
i=`expr $i - 1`
else
doit=0
fi