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
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi
begin:vcard
fn:Phil Middlemiss
n:Middlemiss;Phil
org:Vision Software, MTS Ltd
email;internet:[EMAIL PROTECTED]
title:Project Leader
tel;work:+64 7 3480001
tel;cell:+64 27 4592648
x-mozilla-html:TRUE
url:http://www.tumonz.co.nz
version:2.1
end:vcard
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi