githubear's picture
Update boot/_boot
2ab3707 verified
Raw
History Blame Contribute Delete
539 Bytes
#!/bin/bash
CWD=$(cd `dirname $0`;pwd)
cd "${CWD}"
function end_loop() {
cat /home/user/boot/log/observer.log.wf
exec tail -f /dev/null
}
cd "${CWD}"
python3.10 ./init_store_for_fast_start.py /home/admin/oceanbase/bin/observer . /home/user/dest /home/user/dest/etc -d /home/user/store
if [ $? == 0 ]; then
echo "================== prepare fast boot finish ===================="
else
echo "================== prepare fast boot failed ===================="
end_loop
fi
cd /home/user/app
python3.10 ./main.py
# end_loop