development
group_vars
production
qs
roles
ams_0006_8.0.5.0
ams_0008_8.0.8.0
ams_0008_8.0.8.0_AdminServer
ams_0013_8.0.9.0
ams_sso
base_installation
defaults
files
bash_profile
psc.sh
startALL
stopALL
handlers
meta
tasks
tests
vars
.travis.yml
README.md
chrony
default_role
git
teaching
ansible.cfg
site.retry
site.yml
webservers.yml
45 lines
1.1 KiB
Bash
Executable File
45 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/bash
|
|
AMSHOME="/opt/rola/ams"
|
|
|
|
if [ ! -f $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status ]
|
|
then
|
|
APPS="DOWN"
|
|
else
|
|
APPS=$(cat $AMSHOME/linux/Appserver/service/rsWebserviceAppserver.status)
|
|
fi
|
|
#Check for Webservice
|
|
if [ ! -f $AMSHOME/linux/Services/service/rsWebserviceImp20.status ]
|
|
then
|
|
WEBS="DOWN"
|
|
else
|
|
WEBS=$(cat $AMSHOME/linux/Services/service/rsWebserviceImp20.status)
|
|
fi
|
|
#Check for BV-Service
|
|
if [ ! -f $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status ]
|
|
then
|
|
BVS="DOWN"
|
|
else
|
|
BVS=$(cat $AMSHOME/linux/webclient-services/rsAmsBvService-8.0.8.0/service/rsAmsBvService.status)
|
|
fi
|
|
#Anzeige
|
|
|
|
printf "\n \e[33m\t\t\tAppserver und Services\e[0m \n\n\n"
|
|
if [[ $APPS = "STARTED" ]]
|
|
then
|
|
printf "\t\tAppserver\t\e[32m%s\e[0m \n\n\n" "$APPS"
|
|
else
|
|
printf "\t\tAppserver\t\e[31m%s\e[0m \n\n\n" "$APPS"
|
|
fi
|
|
if [[ $WEBS = "STARTED" ]]
|
|
then
|
|
printf "\t\tWebservice\t\e[32m%s\e[0m \n\n\n" "$WEBS"
|
|
else
|
|
printf "\t\tWebservice\t\e[31m%s\e[0m \n\n\n" "$WEBS"
|
|
fi
|
|
if [[ $BVS = "STARTED" ]]
|
|
then
|
|
printf "\t\tBV-Service\t\e[32m%s\e[0m \n\n\n" "$BVS"
|
|
else
|
|
printf "\t\tBV-Service\t\e[31m%s\e[0m \n\n\n" "$BVS"
|
|
fi
|