server stop command
server stop command stops the named Open Liberty server.
Normal server stop includes a 30 second quiesce stage before the server shuts down. This quiesce stage allows time for shutdown preparation, such as stopping inbound listeners but allowing existing requests to complete. Applying the
--force option to the stop command skips the quiesce stage. The
--force option has no effect if server stop was already initiated. If you use the
--force option, you might see unexpected exceptions in the
messages.log file that occur after the server received the server stop command.
myserver server with the quiesce stage:
server stop myserver
myserver server to stop without the quiesce stage:
server stop myserver --force
Run the command from the
server stop serverName [options]
The name of the server to run the command against. If no server is specified, the action is performed against the default server instance,
defaultServer, if it exists.
One or more optional parameters.
Skips the quiesce stage before the server is shut down.
The following exit codes are available for the
server stop command and the equivalent executable JAR file
OK. 0 indicates successful completion of the requested operation.
1 indicates invocation of a redundant operation, such as starting a started server or stopping a stopper server. 1 might also be returned if the JVM options that were used are not valid.
2 indicates that the server does not exist.
Exit codes that are greater than or equal to 20 indicate that an error occurred while performing the request. Messages are printed and captured in log files with more information about the error.