Technical data

5 Setting Up a WebLogic Server as a Windows Service
5-4 Configuring and Managing WebLogic Server
2. If you set up both an Administration Server and a Managed Server to run as
Windows services on the same computer, you can specify that the Managed
Server starts only after the Administration Server has started by doing the
following:
a. In a text editor, open the
WL_HOME\server\bin\installSvc.cmd master
script.
The last command in this script invokes the
beasvc utility.
b. Add the following arguments to the command that invokes the
beasvc utility:
" -depend: service_names
Comma-separated list of services that must start before this service starts.
" -delay: delay_milliseconds
Number of milliseconds to delay the JVM thread.
The
-delay argument is optional, but recommended to make sure that an
Administration Server has time to complete its startup cycle before any
Managed Servers start.
For example, the modified
beasvc invocation will resemble the following:
"%WL_HOME%\server\bin\beasvc" -install
-svcname:"beasvc %DOMAIN_NAME%_%SERVER_NAME%"
-depend: "beasvc myDomain_myAdminServer"
-delay: "800"
-javahome:"%JAVA_HOME%" -execdir:"%USERDOMAIN_HOME%"
-extrapath:"%WL_HOME%\server\bin" -password:"%WLS_PW%"
-cmdline:%CMDLINE%
3. Save the script and run it from the servers root directory.
If the script runs successfully, it creates a Windows service named
beasvc DOMAIN_NAME_SERVER_NAME and prints a line to standard out that is
similar to the following:
beasvc mydomain_myserver installed.
4. If you modified the WL_HOME\server\bin\installSvc.cmd master script,
undo your modifications so the script can be used to set up other server instances.
Note: If you use the Domain Configuration Wizard to create a domain and server,
some of the domain templates prompt you to set up the server as a Windows
service. You can choose yes to set up an Administration Server as a Windows
service. However, if you want to set up a Managed Server with a dependency,
you must choose no in the wizard and complete the steps in this section.