Skip to content

Instantly share code, notes, and snippets.

@Wuvist
Created October 23, 2012 09:18
Show Gist options
  • Save Wuvist/3937807 to your computer and use it in GitHub Desktop.
Save Wuvist/3937807 to your computer and use it in GitHub Desktop.
# 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