#!/bin/bash
ISTOMCATRUNNING="$(ps -fu gcube | grep -v grep | grep -c java)"
if (( $ISTOMCATRUNNING == 0 ))
then
sleep 60
fi
/etc/init.d/tomcat-instance-9000 restart
exit 0