Merge pull request #1208 from shubhra02/master

Added Start and Stop Script For Linux
This commit is contained in:
Thad Guidry 2017-07-26 09:16:06 -05:00 committed by GitHub
commit e1722a8895
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -25,3 +25,4 @@ broker/core/test-output/
tmp/
/test-output
/bin
open-refine.log

6
start.sh Normal file
View File

@ -0,0 +1,6 @@
echo 'Starting open refine'
read -p "Enter IP Address [Default 127.0.0.1]: " ip
ip=${ip:-127.0.0.1}
nohup ./refine -i $ip > open-refine.log 2>&1 &
echo "Started Open-Refine on" $ip
echo "open refine started, check log through -> tail -f open-refine.log"

2
stop.sh Normal file
View File

@ -0,0 +1,2 @@
ps -ef | grep refine | awk '{print $2}' | awk 'NR==1' | xargs kill
echo 'successfully stopped open-refine'