Fixed FreeBSD script
This commit is contained in:
parent
1af9935914
commit
ad297f29cf
@ -45,18 +45,19 @@ 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
|
||||||
kill -15 `cat $MBSE_ROOT/var/run/mbtask`
|
kill -15 `cat $MBSE_ROOT/var/run/mbtask`
|
||||||
i=10
|
sleep 1
|
||||||
doit=1
|
|
||||||
while let 'i > 0' && let 'doit != 0'
|
|
||||||
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
|
|
||||||
else
|
|
||||||
doit=0
|
|
||||||
fi
|
fi
|
||||||
done
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
|
echo -n "."
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
|
echo -n "."
|
||||||
|
sleep 1
|
||||||
|
fi
|
||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
kill -9 `cat $MBSE_ROOT/var/run/mbtask`
|
kill -9 `cat $MBSE_ROOT/var/run/mbtask`
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user