본문 바로가기

엔지니어/Bash

solr 솔라 reload

728x90
반응형

#!/bin/bash



# reloads a Solr core

if [ "$1" = "" ]; then

echo -n "Name of core to reload: "

read name

else

name=$1

fi



if [ ! -d /var/lib/solr/data/$name ] || [ $name = "" ]; then

echo "Core doesn't exist"

exit

fi



curl "http://127.0.0.1:8080/solr/admin/cores?action=RELOAD&core=$name"

반응형

'엔지니어 > Bash' 카테고리의 다른 글

트래픽 체크  (0) 2016.05.26
파일유무  (0) 2016.05.26
mysql backup  (0) 2016.05.26
geoip  (0) 2016.05.26
expect rsync  (0) 2016.05.26