Hitachi

Hitachi Application Server V10 Command Reference Guide (For UNIX® Systems)


2.6.29 stop-webserver

The stop-webserver subcommand stops a web server.

Synopsis

asadmin [asadmin_options] stop-webserver [--graceful {false|true}]
    webserver_name

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The stop-webserver subcommand stops the specified web server.

This subcommand is supported only in the remote mode.

When this subcommand is used, there is a timeout period for stopping web server. If a timeout occurs while requesting to the Domain Administration Server, the stop processing continues. If a timeout occurs while stopping web server or reading the asadmin command, this subcommand fails to run. However, the stop processing of web server continues. You can verify whether web server has been stopped successfully, by viewing list-webservers subcommand or web server status in the Administration Console.

Execution permission

General user

Precondition

The web server has been started.

Arguments

--graceful {false|true}

Specifies whether to stop the web server in a planned termination.

Type: Boolean

You can specify the following values:

  • true

    Stops the web server in a planned termination.

  • false

    Stops the web server normally.

Default value: true

webserver_name

Specifies the name of the web server to be stopped.

Type: String

You can specify the following values:

  • Name of a web server that exists in the domain

Default value: (None. You must specify a value.)

Examples

asadmin stop-webserver Web1 
asadmin stop-webserver --graceful true Web1

Exit Status

Exit Status

Explanation

0

Normal termination.

1

Abnormal termination.