server status command
The server status
command checks to see whether the specified server is running.
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
:
Code | Explanation |
---|---|
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 |
>=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. |