2013-12-22 23:44:26 -05:00
|
|
|
#!/bin/bash
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -r -f example2
|
|
|
|
rm -r -f example3
|
|
|
|
rm -r -f example4
|
|
|
|
|
|
|
|
rm -r -f dist
|
|
|
|
rm -r -f build
|
|
|
|
rm -r -f example/solr/zoo_data
|
2012-08-03 12:11:00 -04:00
|
|
|
rm -r -f example/solr/collection1/data
|
2012-01-25 14:49:26 -05:00
|
|
|
rm -f example/example.log
|
|
|
|
|
2015-01-13 18:31:20 -05:00
|
|
|
ant server dist
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cp -r -f example example2
|
|
|
|
cp -r -f example example3
|
|
|
|
cp -r -f example example4
|
|
|
|
|
|
|
|
|
|
|
|
cd example
|
2012-07-09 13:33:12 -04:00
|
|
|
java -DzkRun -DnumShards=2 -DSTOP.PORT=7983 -DSTOP.KEY=key -Dbootstrap_conf=true -DzkHost=localhost:9983,localhost:14574,localhost:14585 -jar start.jar 1>example.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ../example2
|
2012-07-09 13:33:12 -04:00
|
|
|
java -Djetty.port=13574 -DzkRun -DzkHost=localhost:9983,localhost:14574,localhost:14585 -DSTOP.PORT=6574 -DSTOP.KEY=key -jar start.jar 1>example2.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
|
|
|
cd ../example3
|
2012-02-09 22:40:31 -05:00
|
|
|
java -Djetty.port=13585 -DzkRun -DzkHost=localhost:9983,localhost:14574,localhost:14585 -DSTOP.PORT=6575 -DSTOP.KEY=key -jar start.jar 1>example3.log 2>&1 &
|
2012-01-25 14:49:26 -05:00
|
|
|
|
2012-02-02 23:23:48 -05:00
|
|
|
# wait for config to go up
|
|
|
|
sleep 10
|
|
|
|
|
2012-01-25 14:49:26 -05:00
|
|
|
cd ../example4
|
|
|
|
java -Djetty.port=13596 -DzkHost=localhost:9983,localhost:14574,localhost:14585 -DnumShards=2 -DSTOP.PORT=6576 -DSTOP.KEY=key -jar start.jar 1>example4.log 2>&1 &
|