DB Serverinitialisierung
This commit is contained in:
29
roles/filesystem/files/bash_profile
Normal file
29
roles/filesystem/files/bash_profile
Normal file
@ -0,0 +1,29 @@
|
||||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
|
||||
if [ "$TERM" = "" ]
|
||||
then
|
||||
eval ` tset -s -Q -m ':?hp' `
|
||||
else
|
||||
eval ` tset -s -Q `
|
||||
fi
|
||||
|
||||
stty erase "^H" kill "^U" intr "^C" eof "^D"
|
||||
stty hupcl ixon ixoff
|
||||
|
||||
PATH=$PATH:$HOME/.local/bin:$HOME/bin
|
||||
export PATH
|
||||
set -u
|
||||
trap "echo 'logout'" 0
|
||||
stty erase ^?
|
||||
|
||||
# Set up the shell variables:
|
||||
EDITOR=vi
|
||||
export EDITOR
|
||||
/home/jetty/psc.sh
|
44
roles/filesystem/files/psc.sh
Executable file
44
roles/filesystem/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-14.1.4.0/service/rsAmsBvService.status ]
|
||||
then
|
||||
BVS="DOWN"
|
||||
else
|
||||
BVS=$(cat $AMSHOME/linux/webclient-services/rsAmsBvService-14.1.4.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
|
25
roles/filesystem/files/startALL
Executable file
25
roles/filesystem/files/startALL
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/bash
|
||||
AMSHOME="/opt/rola/ams"
|
||||
|
||||
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-14.1.4.0/service/rsAmsBvService.status ]
|
||||
then
|
||||
echo "BV-Service is already running!"
|
||||
else
|
||||
/opt/rola/ams/linux/webclient-services/rsAmsBvService-14.1.4.0/service/rsAmsBvService.sh start;
|
||||
fi
|
||||
|
||||
./psc.sh
|
25
roles/filesystem/files/stopALL
Executable file
25
roles/filesystem/files/stopALL
Executable file
@ -0,0 +1,25 @@
|
||||
#!/usr/bin/bash
|
||||
AMSHOME="/opt/rola/ams"
|
||||
|
||||
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-14.1.4.0/service/rsAmsBvService.status ]
|
||||
then
|
||||
echo "BV-Service not running!"
|
||||
else
|
||||
$AMSHOME/linux/webclient-services/rsAmsBvService-14.1.4.0/service/rsAmsBvService.sh stop;
|
||||
fi
|
||||
|
||||
./psc.sh
|
Reference in New Issue
Block a user