Fixed Debian init script
This commit is contained in:
parent
8d4cf65939
commit
2166d0575f
@ -50,15 +50,16 @@ case "$1" in
|
|||||||
echo -n "logoff users "
|
echo -n "logoff users "
|
||||||
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null
|
su mbse -c '$MBSE_ROOT/bin/mbstat close wait -quiet' >/dev/null
|
||||||
echo -n " stopping mbtask"
|
echo -n " stopping mbtask"
|
||||||
kill `cat $MBSE_ROOT/var/run/mbtask`
|
pid=$( cat $MBSE_ROOT/var/run/mbtask )
|
||||||
|
kill $pid
|
||||||
i=10
|
i=10
|
||||||
doit=1
|
doit=1
|
||||||
while let 'i > 0' && let 'doit != 0'
|
while [ $i -gt 0 ] && [ $doit = 1 ]
|
||||||
do
|
do
|
||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
let i=i-1
|
i=`expr $i - 1`
|
||||||
else
|
else
|
||||||
doit=0
|
doit=0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user