2021-09-15 11:49:25 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
#初始化
|
|
|
|
INIT(){
|
|
|
|
cd /usr/local/isearch/index_storage/inverted_index/bin
|
|
|
|
./dtcd.sh start
|
|
|
|
cd /usr/local/isearch/index_storage/intelligent_index/bin
|
|
|
|
./dtcd.sh start
|
|
|
|
cd /usr/local/isearch/index_storage/original_data/bin
|
|
|
|
./dtcd.sh start
|
2022-06-01 17:54:56 +08:00
|
|
|
cd /usr/local/isearch/vector_index_helper/bin
|
|
|
|
./vector_index
|
|
|
|
sleep 1
|
2021-09-15 11:49:25 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2022-06-06 15:41:48 +08:00
|
|
|
#/usr/sbin/sshd -D &
|
2021-09-15 11:49:25 +08:00
|
|
|
INIT
|
|
|
|
PROCESS_DAEMON
|