in reply to Win32::Daemon::State returns a 0 or 1

And might that indicate "success" or "failure?"

Have you run a compilation check?

Have you read Perl script as windows service?

Have you read the docs carefully? or the module's homepage? For example:

error_control
An integer specifying how the Service Control Manager is to react if the service fails to start. The default is SERVICE_ERROR_IGNORE, which in fact gets you an error log entry.
  • Comment on Re: Win32::Daemon::State returns a 0 or 1

Replies are listed 'Best First'.
Re^2: Win32::Daemon::State returns a 0 or 1
by azaragoza (Acolyte) on Jan 05, 2009 at 22:25 UTC
    The job runs fine no copile errors, it's just not returning the constant strings the documentation claims it should return. Ex: SERVICE_STOPPED, SERVICE_START_PENDING, SERVICE_PAUSE_PENDING, SERVICE_CONTINUE_PENDING, SERVICE_STOP_PENDING, and SERVICE_RUNNING. This strings are compared to the status returned to perform certain functions. I did not write the code I picked it up from the web and I'm trying to make it work for me. Thanks for your help.