Starting Process Scheduler as a Windows Service (Optional)

You can start the Process Scheduler server as a Windows service. This means that administrators do not need to manually boot each Process Scheduler server that runs on a Microsoft Windows machine. Instead, each time you boot the Microsoft Windows server where the Process Scheduler server resides, the Process Scheduler Server will boot automatically. You can also still manually boot Process Scheduler Servers on your Microsoft Windows server.

Note:

If you have set up TUXDIR and TEMP as new SYSTEM variables, you need to reboot your machine before any Windows services will pick up the value of these environment variables.

Note:

You can also set up application servers and search servers as a Windows service using the instructions provided here.

The following directions assume that the Process Scheduler is already configured on the Microsoft Windows server.

To set up the Windows Service for a Process Scheduler Server:

  1. Open the System utility within the Control Panel, and set the variables, listed with a brief explanation in the following table, in the System Variables section of the Environment tab.

    Note:

    Even if the following variables are in the User Variables section, they must also be in the System Variables section because the Windows service will be started under the System Account.

    Variable Value

    TEMP

    Specify the location of the TEMP directory on the Windows server, as in C:\TEMP.

    TUXDIR

    Specify the location of the Tuxedo directory on the Windows server, as in C:\tuxedo.

  2. Reboot the Windows computer if any changes or additions were made for the system variables.

  3. Run the PeopleSoft PSADMIN utility (psadmin.exe in the PS_HOME\appserv directory), and press ENTER.

  4. Select 5 for Service Setup from the PeopleSoft Server Administration menu.

     --------------------------------
    PeopleSoft Server Administration
     --------------------------------
      PS_CFG_HOME             C:\Users\JSMITH\psftuser\psft\pt\8.63
      PS_HOME                 C:\psft\pt\ps_home8.63
      PS_APP_HOME             C:\psft\pt\hcm_app_home
    
      1) Application Server
      2) Process Scheduler
      3) Web (PIA) Server
      4) Switch Config Home
      5) Service Setup
      6) Replicate Config Home
      7) Refresh Config Home
      q) Quit
    
    Command to execute (1-7, q): 6
                
  5. Select 1 from the PeopleSoft Services Administration menu.

    -------------------------------------------
    PeopleSoft Services Administration
    -------------------------------------------
     1) Configure Windows Service
     2) Install Windows Service
     3) Delete Windows Service
     4) Edit Service Configuration File
     q) Quit
    
    Command to execute (1-4, q) : 1
                

    When asked if you want to change configuration values, enter y.

  6. Enter the name of the Process Scheduler databases that you intend to include as part of the Windows service.

    Values for config section - NT Services
      Service Start Delay=60
      Application Server Domains=HRDMO
      Process Scheduler Databases=HRDMO
      Search Server Domains=HRDMO
    
    Do you want to change any values (y/n)? [n]:
    

    If you specify more than one Process Scheduler database, separate each entry with a comma.

    Note:

    You can use PSADMIN to set up Process Scheduler Servers, application servers, or search servers as a Windows service. The Windows Service psntsrv.exe automatically starts application servers, Process Scheduler servers, and search servers that reside on the same Microsoft Windows machine. Occasionally, psntsrv.exe would attempt to initiate a connection between an application server, Process Scheduler server, or search server and a database on the same machine that was not ready to receive requests. As a result the connection would fail. When you set up these servers as a Windows Service, you can specify a Service Start Delay, in seconds, that elapses before a service attempts to start any application server domains, Process Scheduler servers, or search servers. This allows the RDBMS to boot and become available to accept requests. The default setting for the Service Start Delay parameter is 60 seconds.

    Note:

    The NT Services section of the PSADMIN modifies the psntsrv.cfg file located in the PS_CFG_HOME\appserv directory. You can edit this file manually by selecting 4, Edit Service Configuration File from the PeopleSoft Services Administration menu. If you edit it, you need to delete and then install the service again.

  7. Select option 2 from the PeopleSoft Services Administration menu.

     -------------------------------------------
    PeopleSoft Services Administration
     -------------------------------------------
       1) Configure Windows Service
       2) Install Windows Service
       3) Delete Windows Service
       4) Edit Service Configuration File
       q) Quit
    
    Command to execute (1-4, q) : 2
                
  8. Return to the Control Panel, choose Administrative Tools, and launch the Services utility.

  9. On the Services dialog, scroll to find the entry that adheres to the following naming convention, and select it:

    PeopleSoft <PS_CFG_HOME>

    For example:

    PeopleSoft C:\Users\JSMITH\psftuser\psft\pt\8.63

    Note:

    The default Startup mode is Manual.

  10. Click Startup.

  11. On the Service dialog in the Startup Type group, select Automatic, and in the Log On As group, select Local System Account. Then click OK.

    Note:

    The Log On As setting needs to reflect that which you set for your ORACLE ProcMGR V22.1.0.0.0 and Tlisten processes. Oracle recommends that you set these services to Local System Account when you install Tuxedo. The Log On As value only affects the application server because Process Scheduler runs independently from Tuxedo. See the chapter “Installing Additional Components” for more information on installing Tuxedo, and refer to the chapter “Configuring the Application Server on Windows” for the details on configuring the application server.

  12. On the Services dialog, make sure the PeopleSoft service is selected, and click Start.

  13. Use the Process Monitor to verify that the Process Scheduler Server is running. You can also use Task Manager to verify that the executables involved with the service are running.

For the Process Scheduler, make sure that the psprcsrv.exe is running. If you have customized the name of psprcsrv.exe, make sure the appropriate executable is running.