Apache Web Server and Record Interlocks


The Apache Web Server is the program that runs that allows students to
access web pages on your Alpha.  Shutting this process down means that
students will no longer be able to view web pages when they navigate to your
Alpha server through a web browser.

CAdi Server is a program that runs that allows communication between web
page forms and POISE data files.  It can query files, add records to files,
delete records from files, etc.  It can also be run in an interactive
environment (from the dollar prompt).  The CAdi server is started when your
system boots up and runs in the background, keeping certain files open so
that queries to those files can happen in a much faster manner than in the
previous version of CAdi.  (This is where your file lock is coming from). 

Below is a set of procedures to consider when you need to re-key or modify
files that CAdi Server has locked:

1.  Instead of shutting down apache, which would cause students to see an
error in their web browser when they come to your website, just set the
system as being down for maintenance.  This way, students will see the login
screen, but when they attempt to log in, they'll see the message below.
         $ DEFINE/SYSTEM CC$SYSTEM_STATUS "DOWN"
         $ DEFINE/SYSTEM CC$SYSTEM_MSG "The System is Down for Maintenance."

2.  Then, shut down the CAdi Server
         $ RUN CDISYS_EXE:[CADI_SERVER.EXE]CADI$MANAGER
         CADI$MANAGER> STOP CONTROL REG
         CADI$MANAGER> EXIT

3.  Then, perform whatever maintenance that needs to be done.

4.  Restart the CAdi Server
         $ RUN CDISYS_EXE:[CADI_SERVER.EXE]CADI$MANAGER
         CADI$MANAGER> START CONTROL REG
         CADI$MANAGER> EXIT

5.  Then, reset the system logicals:
         $ DEFINE/SYSTEM CC$SYSTEM_STATUS "UP"

Greg Pinkston