server status command

The server status command checks to see whether the specified server is running.

Usage examples

Determine whether the myserver server in running:

server status myserver

Syntax

Run the command from the path_to_liberty/wlp/bin directory.

server status serverName
serverName

The name of the server to run the command against.

Exit codes

The following exit codes are available for the server status command and the equivalent executable JAR file ws-server.jar:

Exit codes for the server status command
CodeExplanation

0

OK. 0 indicates successful completion of the requested operation.

1

For server status, 1 indicates that the server is not running.

5

5 indicates that the server status is unknown. For example, the workarea directory is missing or the Attach API fails to work.

>=20

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.