Re: Canceling Windows Service Start
- From: "JSheble" <jsheble-NOSPAM@xxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 10:47:36 -0700
I am not talking about a monitoring app, I'm talking I don't want the
service itself to start unless certain conditions are met. If they try to
start the service, and those conditions fail, then the servie should not
start. How does the service not allow itself to be started?
"Ravi" <Ravi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DD6E0BD0-8711-4A3A-A8BA-1075B6B3051A@xxxxxxxxxxxxxxxx
> Hi,
> I dont have a very good knowledge on this. But from what I know u cannot
> start or stop a servce within a service. This has to be done by a writing
> a
> Service Controller.
>>"read in some configuration settings, and if
>>anything is either empty, or invalid (such as a DB DataSource string or a
>> missing diredtory, etccc)
> The above portion has to be done by the Controller and then the service
> has
> to be started.
> PLease read more about monitoring windows services in MSDN
>
> "JSheble" wrote:
>
>> I've written a Windows Service using C#, but I cannot seem to figure out
>> how
>> to cancel or prevent the service from starting under certain conditions.
>> For example, in the OnStart I read in some configuration settings, and if
>> anything is either empty, or invalid (such as a DB DataSource string or a
>> missing diredtory, etccc) I don't want the servie to start. So how would
>> I
>> cancel the start up?
>>
>>
>>
.
- Follow-Ups:
- Re: Canceling Windows Service Start
- From: Willy Denoyette [MVP]
- Re: Canceling Windows Service Start
- References:
- Canceling Windows Service Start
- From: JSheble
- RE: Canceling Windows Service Start
- From: Ravi
- Canceling Windows Service Start
- Prev by Date: Re: P/Invoke MFC member
- Next by Date: Re: collection to dataset
- Previous by thread: RE: Canceling Windows Service Start
- Next by thread: Re: Canceling Windows Service Start
- Index(es):
Relevant Pages
|