WebLogic Server as a Unix Daemon Process

Start Weblogic Server as a Unix Daemon Process

The following procedure outlines the steps required to start WLS as a Unix daemon

1) Copy the startWebLogic.sh script to the /etc/init.d directory. For the purpose of these instructions, name it "startWLS_daemon.sh".

2) Modify the java command line used to start WLS by adding a path that points to your domain directory. For example:
-Dweblogic.RootDirectory=/opt/bea/user_projects/domains/mydomain

3) Test your startup script by executing it from the /etc/init.d directory.

4) When you have successfully resolved any path issues, add the following command line options:
JAVA_OPTIONS="-Dweblogic.Stdout="outfilename" -Dweblogic.Stderr="errorfilename" -Dweblogic.RootDirectory=/bib00d10/boxi/user_projects/domains/BOXI/ ${SAVE_JAVA_OPTIONS}"

We have to specify a fully qualified fie path instead of outfilename and errorfilename.For example c:\out.txt

5) Next, create a link to startWLS_daemon.sh in the /etc/rc2 directory.
>cd /etc/rc2.d
>ln -s /etc/init.d/startWLS_daemon.sh startWLS

6) Reboot your Unix machine and examine the stdout and stderr output in the file(s) listed in step 4) to ensure that the WLS daemon started successfully.

If your domain is in production mode you have to do the following also:-

Modify the startup script and pass the user name and password like this:-
WLS_USER=
WLS_PW=

0 comments:

Post a Comment