Intitiales Befüllen
This commit is contained in:
44
roles/base_installation/files/psc.sh
Executable file
44
roles/base_installation/files/psc.sh
Executable file
@ -0,0 +1,44 @@
|
||||
#!/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
|
Reference in New Issue
Block a user