How to safely stop a service, from within OnStart...?

  • Thread starter Thread starter Sam Martin
  • Start date Start date
S

Sam Martin

hi all,

on the ServiceBase.OnStart i'm loading setting, etc. if the info i need is
not available, i'm writing to the event log, and want to manually end the
service.

aside from exiting the process, is there any other way (proper) of stopping
the service while it is starting?

TIA

Sam Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top