-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstop_all.sh
More file actions
51 lines (42 loc) · 1.38 KB
/
stop_all.sh
File metadata and controls
51 lines (42 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
TEMPDIR=/vagrant/tmp
ORACLE_HOME=/home/vagrant/Oracle/Middleware_Orch
ENDECA_STUDIO_DOMAIN_NAME=endeca_studio
ENDECA_SERVER_DOMAIN_NAME=endeca_server
ENDECA_PS_DOMAIN_NAME=endeca_provisioning
stopServerWLS()
{
if [ -e $TEMPDIR/stopServerWLS.log ];
then
rm -f $TEMPDIR/stopServerWLS.log
fi
$ORACLE_HOME/user_projects/domains/$ENDECA_SERVER_DOMAIN_NAME/bin/stopWebLogic.sh &> $TEMPDIR/stopServerWLS.log
# Kill any remaining process abdruptly
ps -ef|grep java | grep -v grep|grep Middleware | awk '{print $2}' | xargs kill -9 &> /dev/null
ps -ef|grep dgraph | grep -v grep|grep Middleware | awk '{print $2}' | xargs kill -9 &> /dev/null
}
stopStudioWLS()
{
if [ -e $TEMPDIR/lstopStudioWLS.log ];
then
rm $TEMPDIR/stopStudioWLS.log
fi
$ORACLE_HOME/user_projects/domains/$ENDECA_STUDIO_DOMAIN_NAME/bin/stopWebLogic.sh &> $TEMPDIR/stopStudioWLS.log
}
stopPSWLS() {
if [ -e $TEMPDIR/stopPSWLS.log ]; then
rm -f $TEMPDIR/stopPSWLS.log
fi
$ORACLE_HOME/user_projects/domains/$ENDECA_PS_DOMAIN_NAME/bin/stopWebLogic.sh &> $TEMPDIR/stopPSWLS.log
}
stopIASWLS() {
if [ -e $TEMPDIR/stopIASWLS.log ]; then
rm -f $TEMPDIR/stopIASWLS.log
fi
/home/vagrant/Oracle/Middleware_Orch/user_projects/domains/endeca_ias/bin/stopWebLogic.sh &> $TEMPDIR/stopIASWLS.log
}
printf "Stopping All-in-one Endeca server..."
stopIASWLS;
stopPSWLS;
stopStudioWLS;
stopServerWLS;
printf "Successfully done!\n";