Previous PageNext Page

3.4.3 Running ASP on Unix

With Chili!Soft ASP for Unix, you have two distinct configuration options. The first configuration is a Running Single Machine where Chili!Soft ASP and the Web server are running on the same physical machine. The second configuration is a Running Multi-Machine where Chili!Soft ASP and the Web server are running on separate machines, and where there may be more than one Chili!Soft ASP server. You will run Chili!Soft ASP in different manners depending on the configuration you have chosen.
 

3.4.3.1 Running Single Machine

When Chili!Soft ASP and the Web server are running on the same machine, use the following methods to start and stop Chili!Soft ASP. Each instance of Chili!Soft ASP can started and stopped individually. Scripts are found in each Chili!Soft ASP instance subdirectory:
 

[Chili!Soft ASP Install Dir]/asp-[server]-[port]/

To start Chili!Soft ASP, execute the following command:
 

#./caspctrl -startall

To stop Chili!Soft ASP, execute the following command:
 

#./caspctrl -stopall

For more information on the caspctrl script, see the caspctrl Reference section.
 

Note:

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

3.4.3.2 Running Multi-Machine

Once you have configured your Web server machine and the Chili!Soft ASP machines to run in a Multi-Machine Chili!Soft ASP
 
, you are ready to start Chili!Soft ASP. Note you may start your Web server before or after you start Chili!Soft ASP. A collection of scripts for controlling Chili!Soft ASP may be found in the [CHILI!SOFT ASP INSTALLDIR]/asp-[server]-[port]/ directory. (If you chose an Advanced installation during setup, these scripts will be located in the configuration file directory you chose.) First, for each machine that is hosting a Chili!Soft ASP engine, start the Chili!Soft ASP daemon in the background with the following command:
 

#./caspctrl -startdaemon

You may want to add this command to the start-up script for each machine hosting a Chili!Soft ASP engine. Next, from any machine that is participating in the configuration (either the Web server machine or the Chili!Soft ASP engine machines), start the Chili!Soft ASP engines with the following control script:
 

#./caspctrl -starteng

This will start 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 machine. To stop all of the Chili!Soft ASP engines in the configuration, use the following command:
 

#./caspctrl -stopeng

Finally, if you ever wish to stop the Chili!Soft ASP daemon(s) (the caspd process), use the following command on each machine 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 on the caspctrl script, see the caspctrl Reference section.
 

3.4.3.3 caspctrl Reference

caspctrl is the primary script for managing Chili!Soft ASP. The different options available for using the caspctrl script appear below.
 
Format:

caspctrl (-v|version) (-vc|verbose) [-](startdaemon|stopdaemon|starteng|stopeng|startall|stopall|viewlog|clearlog|status)

Option Descriptions:
version
Reports the version of Chili!Soft ASP.
verbose
Allows the Chili!Soft ASP engines to output status messages to stdout.
startdaemon
Starts the Chili!Soft ASP server daemon.
stopdaemon
Stops the Chili!Soft ASP server daemon (plus any running ASP engines.)
starteng
Starts Chili!Soft ASP engine(s) on all Chili!Soft ASP machines in the configuration with running daemons.
stopeng
Stops the Chili!Soft ASP engine(s) on all Chili!Soft ASP machines in the configuration with running daemons.
startall
Starts the Chili!Soft ASP daemon and engine(s) on single machine installations of Chili!Soft ASP.
stopall
Stops the Chili!Soft ASP daemon and engine(s) on single machine installations of Chili!Soft ASP.
viewlog
Allows you to view the Chili!Soft ASP server log.
clearlog
Clears the Chili!Soft ASP server log.
status
Reports the status of each Chili!Soft ASP server in the configuration.

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page