image\cslogo3d1.gif

Starting and Stopping Multiple Instances of the ASP Server

With Chili!Soft ASP for Linux and UNIX-based systems, you have two distinct configuration options. In the first type of configuration, the ASP Server and the Web server run on the same computer. In the second type of configuration, multi-machine Chili!Soft ASP, the ASP Server and the Web server run on separate computers, and there can be more than one ASP Server running in the configuration. This topic describes how to start and stop the ASP Server when there is more than one instance in the configuration.

Starting and Stopping the ASP Server on a Single Computer

When Chili!Soft ASP and the Web server are running on the same computer, you can use the Administration Console to start and stop the ASP Server, as described in "Stopping and Restarting the ASP Server" in this chapter. You can also use the following methods to start and stop each instance of the ASP Server individually by using the caspctrl script, which can be found in the Chili!Soft ASP instance subdirectory:

[C-ASP_INSTALL_DIR]/asp-[server]-[port]/

where [C-ASP_INSTALL_DIR] is the directory in which Chili!Soft ASP is installed.

To start the ASP Server, use the following command:

#./caspctrl -startall

To stop the ASP Server, use the following command:

#./caspctrl -stopall

For more information about using the caspctrl script, see "Using the caspctrl Script" in this chapter.

Note: 

The startcaspd and stopcaspd commands from earlier versions of Chili!Soft ASP are supported for backwards compatibility with any utility scripts you have created. You should, however, replace startcaspd and stopcaspd if possible.

Starting and Stopping the ASP Server in a Multi-machine Configuration

For multi-machine Chili!Soft ASP (described in "Setting up Multi-machine Chili!Soft ASP" in this chapter) you must use the caspctrl script to start and stop the ASP Server, which can be found in the Chili!Soft ASP instance subdirectory (note you can start your Web server either before or after you start the ASP Server):

[C-ASP_INSTALL_DIR]/asp-[server]-[port]/

For each computer hosting a Chili!Soft ASP engine, start the Chili!Soft ASP daemon in the background by using the following command.:

#./caspctrl -startdaemon

You might want to add this command to the start-up script for each computer hosting a Chili!Soft ASP engine. Next, from any machine that is participating in the configuration (whether a Web server or ASP Server), start the Chili!Soft ASP engines by using the following command:

#./caspctrl -starteng

This starts all of the Chili!Soft ASP engines on each machine hosting Chili!Soft ASP. You do not need to execute this command on each individual computer.

To stop all of the Chili!Soft ASP Servers in the configuration, use the following command:

#./caspctrl -stopeng

Finally, to stop the Chili!Soft ASP daemon(s) (the caspd process), use the following command on each computer hosting the Chili!Soft ASP engine:

#./caspctrl -stopdaemon

Remember that caspctrl -startdaemon must be run on each machine before the caspctrl -starteng script is run.

For more information about using the caspctrl script, see "Using the caspctrl Script" in this chapter.

Important Note

If you make any changes described in this section--such as to the registry or Chili!Soft configuration files--without prior authorization from Chili!Soft Customer support, you might void your eligibility for technical support.

Most of the configuration settings described in this section are easily accessed from the Chili!Soft ASP Administration Console. Because you can create serious problems with your system by configuring your computer in the manner described in this section, it is highly recommended that you use the Administration Console whenever possible, as described in "Using the Administration Console" in this chapter.

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.