Phil Scadden wrote: > Okay, here is the picture. Have a application that does continuous > real-time data processing on Windows Server. I need several copies of > this application running at the same time, each distinguished by > different startup parameters. I need to be able to have several of > these started on server boot and also to be able to start/stop these > processes from an interactive session on the server. The application > must continue even if session logs out. > > So, all that sounds like service application. Pain though because the > application needs network resources too. > > Q1 - if using services, I might start the service with parameter =1 > for one, > parameter=2 for second etc. How do I identify the service session to > halt though when I want to say terminate the service that was started > with parameter=2? Can I use a service name here to distinquish? > > Q2 - Is there an alternative to services? I can start up a process at > poweron with the scheduler service but is there a way to start an > application that isnt a service so that it survives user logout?
We do something almost exactly like option 1. How we have it is that the service executables have a config file in the same base directory and one of the configuration parameters is an instance name. When the services install themselves the name they use includes the instance name. i.e. In "C:\Service1" is config file with "Instance=PROD1" and installs service called "SERVICE_PROD1". In "C:\Service2" is config file with "Instance=PROD2" and installs service called "SERVICE_PROD2". TTFN Struan Judd Mailto:[EMAIL PROTECTED] Developer Phone: +64 (9) 368 9368 eCargo Fax: +64 (9) 368 9369 Visibility - Communication - Measurement Mobile: +64 (21) 685 335 Private & Confidential http://www.ecargo.co.nz _______________________________________________ Delphi mailing list [email protected] http://ns3.123.co.nz/mailman/listinfo/delphi
