isearch/dockerfiles/search_local/start.sh
2021-09-18 15:24:07 +08:00

34 lines
610 B
Bash

#!/bin/bash
set -e
#初始化
INIT(){
cd /usr/local/isearch/index_storage/inverted_index/bin
chmod +x dtcd.sh
./dtcd.sh start
cd /usr/local/isearch/index_storage/intelligent_index/bin
chmod +x dtcd.sh
./dtcd.sh start
cd /usr/local/isearch/index_storage/original_data/bin
chmod +x dtcd.sh
./dtcd.sh start
cd /usr/local/isearch/index_write/bin
./index_write
cd /usr/local/isearch/index_read/bin
./index_read
cd /usr/local/isearch/search_agent/bin
./search_agent -d -c ../conf/sa.conf -v 3
}
#守护脚本
PROCESS_DAEMON(){
while :
do
sleep 5
done
}
/usr/sbin/sshd -D &
INIT
PROCESS_DAEMON