Kbase P3181: How to run a Progress client as a Windows service using SRVANY.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/10/2010 |
|
Status: Verified
GOAL:
How to run the Progress client as a service
GOAL:
How to run a Progress client as an NT service using SRVANY
GOAL:
How to run the OpenEdge client as a service
GOAL:
How to run batch job on Windows so that it is not terminated when user logs off?
FACT(s) (Environment):
Progress 8.x
Progress 9.x
OpenEdge 10.x
Windows NT 4.0
Windows NT 32 Intel/Windows 2000
FIX:
On Windows, if a process is not started as a Service, it will be terminated if the user account used to start the process logs out.
The only way to keep a process running after the user starting it logs out, is to run it as a Windows Service.
To be able to run a Progress client as a Windows Service using the SRVANY utility, you will need to have the Windows Resource Kit installed.
Follow the instructions in the srvany.doc document included with the Resource Kit for the exact steps on how to run your Progress application as an NT Service.
Make sure you have "Allow Service to Interact with Desktop" if your application does not run in batch mode. To specify parameters, use the AppParameters string in the Parameters subkey and define the working directory with the AppDirectory string.
This is an example of the registry entries used in the Parameters subkey:
AppDirectory: D:\Progress\91C\WRK
Application: D:\Progress\91C\DLC\bin\prowin32.exe
AppParameters: -pf abc.pf