473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Multiple windows services - query

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
Nov 16 '05 #1
2 1881
You could use a ServiceStatePublisher to listen for state changes to the
Windows Services you need conrolling.

http://www.codeproject.com/csharp/Se...ePublisher.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" <Sa***@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
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

Nov 16 '05 #2

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

On 15 Jun 2004 04:41, "Sachi" wrote:
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



Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
1
by: Vlad | last post by:
Is there any way to install multiple instances of the same windows service designed with VS.NET 2003? I tried copying the binaries into a separate folder and then copying registry entries for the...
11
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings...
6
by: Dan V. | last post by:
Is there a way to query a remote xml file periodically by not using web services? For Windows and Unix platforms. Is there a cheap software product that I can install on each client and my Windows...
10
by: John | last post by:
I currently have a Windows Service that runs Transactions that are very Processor/Memory Intensive. I have a requirement to deploy multiple instances of the Web service on the Same server. Each...
3
by: hpark2_1999 | last post by:
Hi! I know how easy it is to create an NT services using .net framework (using Visual Studio 2003). Here is my problem. I came across a situation where I would like to run 2 instances of a...
1
by: assgar | last post by:
Hi I was using a schroll bar to display multiple rows of dynamically created from database records. The scrolling was not displaying the data properly so I have decided to use pagination. The...
0
by: jigsmshah | last post by:
I have a windows service developed in C#.I am reading the connection string from an ini file and also i am reading 3 image file from the bin directory. now the new requirement is that there will be...
6
by: Adam Clauss | last post by:
We have a service written in C#. The generated code "hardcodes" the service name into the exe. We have a situation where we would like to allow multiple Windows Services to be defined. These...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.