2.4.3 Starting HTTP Server (httpsd command)
You can use this method to start HTTP Server by specifying the root directory and the httpsd.conf file of the server.
Before you run the httpsd command, set the PRFSPOOL environment variable.
- Organization of this subsection
(1) Format
/opt/hitachi/httpsd/sbin/httpsd [[-d directory] [-f file-name] [-R directory] | -v | -t]
(2) Options
-
-d directory
You can specify the default value used when the ServerRoot directive is not specified in the configuration file.
-
-f file-name
You can specify the path of the configuration file that you want to use. Specify the httpsd.conf file with the absolute path or the relative path from the value specified in the ServerRoot directive. If this option is omitted, the /opt/hitachi/httpsd/conf/httpsd.conf file is used.
-
-R directory
This option specifies the absolute path of the directory storing the DSO execution library.
-
-v
This option displays the version information. If you specify this option, HTTP Server will not start.
-
-t
This option checks the configuration file syntax. If there is a syntax error, an error message will be displayed on the screen. If you specify this option, HTTP Server will not start.
(3) How to restart
You can use the kill command to restart HTTP Server:
kill {-HUP | -USR1} `cat PidFile-directive-specified-value`
-
-HUP
Restart as when using the restart option of the httpsdctl command.
-
-USR1
Restart as when using the graceful option of the httpsdctl command.
-
PidFile-directive-specified-value
Specify a value (file name) that is specified in the PidFile directive.
(4) How to end
When you use the httpsd command to start HTTP Server, execute the following command to end the process and stop HTTP Server:
kill {-TERM | -USR2} `cat PidFile-directive-specified-value`
-
-TERM
Stop as when using the stop option of the httpsdctl command.
-
-USR2
Stops as when using the gracefulstop option of the httpsdctl command.
(5) How to confirm the start
To confirm the start of HTTP Server, check the control process. For details, see (3) Monitoring the control process of 4.1.4 Operation management.
In addition, make sure that the following message is output to the error log after HTTP Server starts:
Cosminexus HTTP Server version (Unix) configured -- resuming normal operations