Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1b3f5079b1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.42 kB
if [ -f "DONTSTART" ]; then
exit 0;
fi
count=`ps aux|grep api-uwsgi.sock | grep -v grep | wc -l`
response=`curl http://api.indextank.com/ 2> /dev/null`
if [ "$response" != "\"IndexTank API. Please refer to the documentation: http://indextank.com/documentation/api\"" ]; then
date
echo Restarting webapp. Process count is $count, response was:
echo "$response"
./dokillapi.sh
sleep 5s
./dostartapi.sh
fi
Jump to Line
Something went wrong with that request. Please try again.