Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Relocating Sun ONE Active Server Pages PID Files


For users who want to install Sun ONE Active Server Pages to a shared file system, but move writeable Sun ONE ASP files to a local file system, Sun ONE ASP provides a mechanism to allow for this. For single machine Sun ONE ASP installations, this is not required, but has the added benefit that it may decrease network congestion.

There are three attributes of importance in the casp.cnfg file (which is contained under each asp-<server>-<port> directory). These are the hashobj_pid and logfile attributes (located in the [machines] section), and the caspd_pid attribute (located in the [default machine] section). These attributes allow you to specify the locations of the two process ID (PID) files. If you need to relocate these files, remember the following:

If you have several Sun ONE ASP installations on a single physical server (with separate asp-<server>-<port> directories), then the casp.cnfg file in each directory may point to common directories for the PID and log files, but must point to different file names for the PID and log files.

For example, suppose the [machines] and [default machine] sections of your current casp.cnfg file resemble the following.

[machines]
count=1
machine1=127.0.0.1
portnumber=3000
logfile=/opt/casp/logs/server-3000
mtengine=0
disablerestart=0
hashobj_pid=/opt/casp/logs/asp-apache-3000/hashobj.pid
[default machine]
caspd_pid=/opt/casp/logs/asp-apache-3000/caspd.pid
maxprocesses=1
inherit_user=1
#user=nobody
#group=nobody

In this situation, to relocate all of your files off of the shared /opt directory to a /usr/local/casp directory, use the following procedure.

To relocate all files

  1. Create the destination directory(ies), for example:

  2. mkdir -p /usr/local/casp/pids
    mkdir -p /usr/local/casp/logs
  3. Edit the casp.cnfg file to resemble the following example:

  4. [machines]
    count=1
    machine1=127.0.0.1
    portnumber=3000
    logfile=/usr/local/casp/logs/server-3000
    mtengine=0
    disablerestart=0
    hashobj_pid=/usr/local/casp/pids/hashobj-3000.pid
    [default machine]
    caspd_pid=/usr/local/casp/pids/caspd-3000.pid
    maxprocesses=1
    inherit_user=1
    #user=nobody
    #group=nobody
  5. Copy the server log file and the PID files to the directories you created.



ContentsPreviousNextIndex