#!/usr/bin/bash
AMSHOME="/opt/rola/ams"
#Check for Appserver
if [ -f $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status ]
then
echo "Appserver is already running!"
else
/opt/rola/ams/linux/Appserver/service/rsWebserviceAppserver.sh start;
fi
#Check for Webservice
if [ -f $AMSHOME/linux/Services/service/rsWebserviceImp20.status ]
then
echo "Webservice is already running!"
else
/opt/rola/ams/linux/Services/service/rsWebserviceImp20.sh start;
fi
#Check for BV-Service
if [ -f $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status ]
then
echo "BV-Service is already running!"
else
/opt/rola/ams/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.sh start;
fi

./psc.sh
