Hitachi

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


3.2.2 httpsd

The httpsd command starts, restarts, or stops the Web Server, or registers or deletes a service

Synopsis

httpsd.exe [-d directory] [-f file-name] {-n "Service-name"
    -k {start|stop|restart|gracefulstop|install|uninstall} | -t | -v}

Storage location

Application Server installation directory\httpsd

Function

Starts, stops, or restarts the Web Server.

When executing Web Server as a service, the user account will be "LocalSystem" at the time of installation. Web Server including the CGI program and the API connection module is executed by this user account.

Execution permission

Administrator account or standard user account

Arguments

-d directory

Use this option to set the default value used when the ServerRoot directive is not specified in the configuration file.

-f file-name

Use this option to specify the httpsd.conf file. Specify the file name with an absolute path, or with a relative path from the specified value of the ServerRoot directive.

-n "Service-name"

Use this option to specify the service name of Web Server. Specify the service name within " (quotation marks). You can specify a maximum of 128 characters in the service name. Specify the service name in ASCII code. You cannot specify the following characters in the service name:

'', '/', '"', control codes, and multi-byte characters

If you specify this option, you also need to specify the -k option.

-k start

Use this option to start Web Server.

-k stop

Use this option to stop Web Server.

-k restart

Use this option to restart Web Server.

-k gracefulstop

Use this option to stop Web Server. The option stops the server after ending the running server threads. If running server threads do not end, the server threads will end when the waiting time specified in the HWSGracefulStopTimeout directive ends.

-k install

Use this option to register Web Server as a service. When registering the service, the startup type will be 'Manual'. When Web Server starts as a service, it sets the default value of the ServerRoot directive to the path specified in the httpsd.exe command or to the value specified in the -d option.

-k uninstall

Use this option to delete Web Server from the service. If the service is running, first stops the service and then deletes the service.

-t

Use this option to check the configuration file syntax. If there is a syntax error, an error message is displayed on the screen. Web Server does not start when you specify this option.

-v

Use this option to display the version information. Web Server does not start when you specify this option.

Notes

When Web Server is stopped from Control Panel, or by the -k stop option executed from a command prompt, if a server thread is running, it will stop after waiting up to 30 seconds.