Multiple windows services - query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a requirement were there will be some 3 windows services will be there.
But I want only one of this service to hold the control of start, stop and pause features of all this three windows service.
Does any one had this kind of sample?Or clues on how to go with this?

currently my design is to have 3 projects for three windows service. One the master windows service project - we have to something in that installer file, I guess soo.
Let me wait for those correct responses :) ...

Sachi
 
You could use a ServiceStatePublisher to listen for state changes to the
Windows Services you need conrolling.

http://www.codeproject.com/csharp/ServiceStatePublisher.asp

Pretty sure all services need an ability to start or stop though, purely
becuase they have dependencies does not mean you should not be able to stop
or start them.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP


Sachi said:
Hi,
I have a requirement were there will be some 3 windows services will be there.
But I want only one of this service to hold the control of start, stop
and pause features of all this three windows service.
Does any one had this kind of sample?Or clues on how to go with this?

currently my design is to have 3 projects for three windows service. One
the master windows service project - we have to something in that installer
file, I guess soo.
 
If the other two are actually separate Windows Services you will not be
able to prevent a user from starting/stopping them. You will be able to
catch the fact that tyhis has been done and e.g. restart, but that might
not be good enough.
These other two services really sound like threads which belong to the
main service.

Simon Smith
simon dot s at ghytred dot com
http://www.ghytred.com/NewsLook - Usenet for Outlook
 
Back
Top