startServer command

The startServer command reads the configuration file for the specified application server and starts the server. Depending on the options you specify, you can launch a new Java virtual machine (JVM) API to run the server process, or write the launch command data to a file. You can run this command from the install_root/bin directory of a WebSphere Application Server installation, or a Network Deployment installation.

Syntax

The command syntax is as follows:

startServer <server> [options]
where server is the name of the application server you want to start. This argument is required.

Parameters

The following options are available for the startServer command:

-nowait
Tells the startServer command not to wait for successful initialization of the launched server process.
-quiet
Suppresses the progress information that the startServer command prints in normal mode.
-logfile <fileName>
Specifies the location of the log file to which information is written.
-replacelog
Replaces the log file instead of appending to the current log.
-trace
Generates trace information to the log file for debugging purposes.
-timeout <seconds>
Specifies the waiting time before server initialization times out and returns an error.
-statusport <portNumber>
Specifies that an administrator can set the port number for server status callback.
-script [<script fileName>] -background
Generates a launch script with the startServer command instead of launching the server process directly. The launch script name is an optional argument. If you do not supply the launch script name, the default script file name is start_<server> based on the <server> name passed as the first argument to the startServer command. The -background parameter is an optional parameter that specifies that the generated script will run in the background when you execute it.

Note: The startserver.sh script launches a new process from the app_server_root directory to initialize the application server. The start_server1.sh script launches the application server from the directory in which the script is located. Because of this, the directory for the process launched using the startserver.sh script is the app_server_root directory and the directory for the process launched using the start_server1.sh script is the app_server_root/bin directory. Any system properties that are dependant on the process directory such as user.dir, might be different for processes launched using the startserver.sh and start_server1.sh scripts.

-J <java_option>
Specifies options to pass through to the Java interpreter.
-help
Prints a usage statement.
-?
Prints a usage statement.

Usage scenario

The following examples demonstrate correct syntax:

startServer server1

startServer server1 -script (produces the start_server1.sh or .bat files)

startServer server1 -trace (produces the startserver.log file)




Searchable topic ID:   rxml_startserver
Last updated: Jun 21, 2007 4:55:42 PM CDT    WebSphere Application Server Network Deployment, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rxml_startserver.html

Library | Support | Terms of Use | Feedback