Hitachi

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


2.4.11 stop-domain

Stops the Domain Administration Server of the specified domain.

Synopsis

asadmin [asadmin-options] stop-domain [--help]
    [--domaindir domaindir]
    [--kill={false|true}] [domain-name]

Storage location

Application Server installation directory/javaee/glassfish/bin

Function

The stop-domain subcommand of asadmin stops the Domain Administration Server (DAS) of the specified domain. If the domain directory is not specified, the domain in the default domains directory is stopped. If there are two or more domains in the domains directory, the domain-name operand must be specified.

This subcommand is supported in local or remote mode.

When stopping a server, the message KDKD45000-E may be stored in the standard error and logger.log files. However, the termination processing is not affected.

If you specify a host name, the subcommand assumes you are operating in remote mode, which means you must correctly authenticate to the remote server. In local mode, you normally do not need to authenticate to the server as long as you are running the subcommand as the same user who started the server.

Arguments

--help | -?

Displays the help text for the subcommand.

--domaindir={true|false}

Specifies the directory of the domain that is to be stopped. If specified, the path must be accessible in the file system. If not specified, the domain in the default Application Server installation directory/javaee/glassfish/domains directory is stopped.

Type: String

The following values can be specified:

  • Path of the root directory of the domain

Default value: Application Server installation directory/javaee/glassfish/domains

--kill={false|true}

Specifies whether the domain is killed by using the functionality of the operating system to terminate the domain process.

Type: Boolean

The following values can be specified:

  • true

    The domain is killed. The subcommand uses functionality of the operating system to terminate the domain process.

  • false

    The domain is not killed. The subcommand uses functionality of the Java platform to terminate the domain process. This is the default value.

Default value: false

domain-name

Specifies the name of the domain you want to stop.

Type: String

The following values can be specified:

  • Name of the domain

Default value: domain1

Examples

The following example stops the domain named sampleDomain in the default domains directory.

asadmin stop-domain sampleDomain

Exit Status

Exit Status

Explanation

0

subcommand executed successfully.

1

error in executing the subcommand.