Another question for you Dave,

When my service starts I am checking for, among other things, an INI file.

If the INI file does not exist, I set the service state to service_stopped,
then exit.

So what the user sees is:

C:\datacom>net start webopsntmon
The WebOps NT Monitor service is starting.
The WebOps NT Monitor service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

Question is: How can I report an error?

Reading MSDN suggests that MyServiceStatus.dwServiceSpecificExitCode might
be what I am looking for, can I use this from Win32::Daemon?

Cheers!
Stuart.

> -----Original Message-----
> From: Stuart Whelan (DSL Ch) 
> Sent: Saturday, May 18, 2002 10:17 AM
> To: Dave Roth; '[EMAIL PROTECTED]'
> Subject: RE: CreateService as Interactive?
> 
> 
> Thankyou Dave, that is exactly what I was after. :)
> 
> Looking forward to getting your book.
> 
> Cheers!
> Stuart.
> 
> > -----Original Message-----
> > From: Dave Roth [mailto:[EMAIL PROTECTED]]
> > 
> > You need to pass in a reference to a hash into
> > Win32::Daemon::CreateService(). To specify "interact with 
> > desktop" set the 'service_type' key's value to 
> > SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS. This 
> > is the default value if you don't specify any value for this 
> > key. Mind you desktop interaction will only work if the logon 
> > account is 'LocalSystem' (again the default account). You may 
> > need to add a call to Win32::Daemon::ShowService() to 
> > actually display the service's console on the desktop.
> > 
> 
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to