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