Created
October 23, 2012 09:18
-
-
Save Wuvist/3937807 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# usage: startsolr sg/tw | |
get_proc=`ps -e -o pid,command | grep java` | |
echo $get_proc > get_it | |
get_pid=`gawk -F" " '{ print $1 }' get_it` | |
kill $get_pid | |
rm get_it | |
cd solr/$1/jetty/ | |
nohup java -jar -Dt=$1 start.jar & | |
cd ../.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment