-
Notifications
You must be signed in to change notification settings - Fork 2
/
websphere.sh
56 lines (47 loc) · 1.73 KB
/
websphere.sh
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
52
53
54
55
56
#!/bin/bash
# Author: Roman Kharkovski, IBM, blog: http://whywebsphere.com
SERVER_INSTALL_DIR=$SERVER_HOME/ibm/WAS855
PROFILE_NAME="AppSrv01"
INSTANCE_DIR="$SERVER_INSTALL_DIR/profiles/$PROFILE_NAME"
#STD_OUT_FILE="$INSTANCE_DIR/logs/server1/SystemOut.log"
STD_OUT_FILE="$INSTANCE_DIR/logs/server1/startServer.log"
STOP_LOG_FILE="$INSTANCE_DIR/logs/server1/stopServer.log"
PORT=9080
# admin console: http://localhost:9060/ibm/console
START_COMMAND="$INSTANCE_DIR/bin/startServer.bat server1 -profileName $PROFILE_NAME"
START_MESSAGE="ADMU3000I"
STOP_COMMAND="$INSTANCE_DIR/bin/stopServer.bat server1 -profileName $PROFILE_NAME"
#STOP_MESSAGE="WSVR0024I"
STOP_MESSAGE="ADMU4000I"
DEPLOY_DIR="$INSTANCE_DIR/monitoredDeployableApps/servers/server1"
#UNDEPLOY_APP_MESSAGE="CWLDD0008I"
###############################################
# Delete logs and other stuff from install dir
###############################################
cleanup_server()
{
echo "cleanup_server()..."
rm -rf $INSTANCE_DIR/installedApps/RomanW530Node02Cell/*
rm -rf $INSTANCE_DIR/monitoredDeployableApps/servers/server1/*
rm -rf $INSTANCE_DIR/logs/server1/*
rm -rf $INSTANCE_DIR/config/cells/RomanW530Node02Cell/applications/$APP_NAME*
}
###############################################
# Create new server instance
###############################################
create_server()
{
echo "create_server()... do nothing"
# do not need to do anything here
}
###############################################
# Just in case we need to do something
###############################################
websphere_HelloWorld_predeploy()
{
echo "<--->websphere_HelloWorld_predeploy(): nothing to do"
}
websphere_HelloWorld_postdeploy()
{
echo "<--->websphere_HelloWorld_postdeploy(): nothing to do"
}