Skip to content

Commit ae0d841

Browse files
committed
Issue #130 - Added script to start managed server
1 parent 648d384 commit ae0d841

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
DOMAIN_NAME=my_domain
12
ADMIN_PORT=7001
23
ADMIN_HOST=wlsadmin
4+
ADMIN_USER=weblogic
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
#
3+
#Copyright (c) 2014-2018 Oracle and/or its affiliates. All rights reserved.
4+
#
5+
#Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
6+
#
7+
# Start the Domain.
8+
9+
#Define DOMAIN_HOME
10+
export DOMAIN_HOME=/u01/oracle/user_projects/domains/$DOMAIN_NAME
11+
12+
mkdir -p $DOMAIN_HOME/servers/$MS_NAME/security
13+
echo username=$ADMIN_USER > $DOMAIN_HOME/servers/$MS_NAME/security/boot.properties
14+
echo password=$ADMIN_PASSWORD >> $DOMAIN_HOME/servers/$MS_NAME/security/boot.properties
15+
16+
# Start Managed Server and tail the logs
17+
${DOMAIN_HOME}/bin/startManagedWebLogic.sh $MS_NAME http://$ADMIN_HOST:$ADMIN_PORT
18+
touch ${DOMAIN_HOME}/servers/$MS_NAME/logs/${MS_NAME}.log
19+
tail -f ${DOMAIN_HOME}/servers/$MS_NAME/logs/${MS_NAME}.log &
20+
21+
childPID=$!
22+
wait $childPID

0 commit comments

Comments
 (0)