Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Stop/Start/Status: configure-server


This section describes the use of the configure-server script to stop, start, and query the status of the ASP Server. The scriptable interface is described in the following table.

Function
Explanation
function=enginectl
Allows you to stop and start a specific ASP engine, and to retrieve its status.
Parameters
 
engine=<path/name>
(user specified)
If a path is specified, the full path information will be used to identify the ASP engine being modified. If a name is specified (such as asp-server-3000), the path is assumed to reside within the current installation.
restart
Restarts the associated engine. Has an exit code of 0 if the operation succeeds, non-0 if the operation fails.
start
Starts the associated engine. Has an exit code of 0 if the operation succeeds, non-0 if the operation fails.
stop
Stops the associated engine. Has an exit code of 0 if the operation succeeds, non-0 if the operation fails.
status
Returns the status of the associated engine. Has an exit code of 0 if the ASP server is running, non-0 if it isn’t.

Example Usage

cd <install dir>
./configure-server function=enginectl engine=asp-server-3000 restart
 
if ./configure-server function=enginectl engine=asp-server-3000 start; 
then
  echo "The server successfully started."
else
  echo "The server failed to start."
fi


ContentsPreviousNextIndex