Now that is tech support. :) Many many thanks Dave!
Cheers, Stuart. > -----Original Message----- > From: Dave Roth [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 06, 2002 8:19 PM > To: Stuart Whelan (DSL Ch); > '[EMAIL PROTECTED]' > Subject: RE: Reporting an error to Service Manager... > > > I updated the State() function. If you pass in a hash > reference you can specify an error state. Try it using this: > > > Win32::Daemon::State( { 'state' => SERVICE_RUNNING, 'error' > => 1234 } ); > > Note that you do not need to specify a state I did only to > demonstrate the syntax. You can later reset the error state > by simply setting the 'error' key to NO_ERROR. > > You can also use the 'waithint' key. Check the docs for an > explanation. > > The updated version is available on our web and FTP site. Or > directly using > PPM: > ppm install http://www.roth.net/perl/packages/win32-daemon.ppd > > Cheers, > dave > > -----Original Message----- > From: Stuart Whelan (DSL Ch) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 05, 2002 2:15 PM > To: '[EMAIL PROTECTED]' > Subject: Reporting an error to Service Manager... > > > Morning all, > > 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. > _______________________________________________ > Perl-Win32-Admin mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
