Added Start and Stop Script For Linux

This commit is contained in:
Shubhra Sharma 2017-07-14 16:14:58 +05:30
parent 1ee339cbbd
commit 8f679ff68e
2 changed files with 5 additions and 0 deletions

3
start.sh Normal file
View File

@ -0,0 +1,3 @@
echo 'Starting open refine'
nohup ./refine -i 192.168.2.121 > open-refine.log 2>&1 &
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'