Init scripts code cleanup
This commit is contained in:
parent
78039c7f2d
commit
0404a70494
@ -46,18 +46,18 @@ case "$1" in
|
|||||||
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`
|
||||||
sleep 1
|
sleep 1
|
||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
fi
|
fi
|
||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
echo -n "."
|
echo -n "."
|
||||||
sleep 1
|
sleep 1
|
||||||
fi
|
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
|
||||||
|
@ -48,8 +48,7 @@ case "$1" in
|
|||||||
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
if [ -f $MBSE_ROOT/var/run/mbtask ]; then
|
||||||
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 "done,"
|
echo -n "done, stopping mbtask"
|
||||||
echo -n " stopping mbtask"
|
|
||||||
kill -15 `cat $MBSE_ROOT/var/run/mbtask`
|
kill -15 `cat $MBSE_ROOT/var/run/mbtask`
|
||||||
i=10; doit=1;
|
i=10; doit=1;
|
||||||
while let 'i > 0' && let 'doit != 0'
|
while let 'i > 0' && let 'doit != 0'
|
||||||
|
Reference in New Issue
Block a user