[DUG] Stopping particular services, alternative to services.

Phil Middlemiss phil at tumonz.co.nz
Tue Feb 21 10:11:46 NZDT 2006


I don't think you can use Windows Services for this because, as far as I 
know, you can only have one instance of a service running. You would 
need to have differently named (and registered) services for each set of 
different parameters.

Perhaps you could start a single service with multiple threads (each 
operating with a different set of "parameters") instead? The calling 
processes would have to pass some kind of argument or go through a 
simple handshaking routine to determine which thread they should be 
assigned to.

Phil.

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?
> ----------------------------------------------------------
> Phil Scadden, Institute of Geological and Nuclear Sciences
> 764 Cumberland St, Private Bag 1930, Dunedin, New Zealand
> Ph +64 3 4799663, fax +64 3 477 5232
>
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phil.vcf
Type: text/x-vcard
Size: 250 bytes
Desc: not available
Url : http://ns3.123.co.nz/pipermail/delphi/attachments/20060221/f767d1e7/phil.vcf


More information about the Delphi mailing list