OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

3.2.8 Refreshing user server processes

You can use the scdrsprc command to stop and restart a user server process without taking the user server offline. User server processes that are executing service requests when you execute the scdrsprc command are stopped and then restarted at completion of those service requests.

You can also use this command to change a user server's load module without taking the user server offline.

To change a load module:

  1. Create the directory where the user server's new load module will be installed.
  2. Use the prcpathls command to check the user server's search paths.
  3. Use the prcpath command to specify the directory created in step 1 ahead of the search paths specified for the server.
  4. Execute the scdrsprc command.

If you are using the dynamic loading of service functions, you can replace the service functions for a user server without taking the user server offline.

To replace service functions:

  1. Change the name of the UAP shared library specified in the service operand in the user service definition for the applicable user server.
  2. Execute the scdrsprc command.

To check the startup of a new load module or service function, use the system commands provided by your OS to check the process start time on the user server, and compare it with the execution time of the scdrsprc command. When replacing service functions using the scdrsprc command, you cannot add or delete a service function in that user server. To add or delete a service function in a user server, first stop the user server by the dcsvstop command, and then start it again by using the dcsvstart command.

The following table shows what changes you can make to service functions on user servers when you use the scdrsprc command, and when you use the dcsvstop and dcsvstart commands.

Table 3-9 Scope of changes permitted to service functions on user servers

Execution method Replacement of service functions Addition of service functions Deletion of service functions
scdrsprc command Y N N
dcsvstop and dcsvstart commands Y Y# Y

Legend:
Y: Can be changed.
N: Cannot be changed.

#
If you add service functions to an MHP, you must change the MCF application attribute definitions (mcfaalcap).

You must install TP1/Extension 1 to use this facility. Without TP1/Extension 1 installed, this facility may not operate correctly.