checkRequestManager.sh
302 Bytes
#!/bin/bash
export MULTISERVICE_LOG=`readlink -f ../log`
mkdir -p $MULTISERVICE_LOG
export PATH=$PATH:`pwd`
wget --quiet -O /dev/null --timeout=2 --tries=3 http://multiservice.nlp.ipipan.waw.pl/getStatus/abc
if [ $? != 0 ]
then
echo "Request Manager not working, restarting"
runRequestManager.sh
fi