in reply to Win32::Daemon installed service fails to start

In my experince Win32::Daemon can be difficult to debug when trying to get something working. Often the errors are due to the environment not being correct (are you running the service afrom the local system account or do you log on as a user?

In addition, I tend to use Log::Log4perl a lot when using Win32::Daemon. I can wind the logging "noise" back down when I'm happy that everything is running

  • Comment on Re: Win32::Daemon installed service fails to start

Replies are listed 'Best First'.
Re^2: Win32::Daemon installed service fails to start
by punkish (Priest) on Dec 27, 2004 at 21:46 UTC
    Often the errors are due to the environment not being correct (are you running the service afrom the local system account or do you log on as a user?

    Very likely, and that is what I want to determine, but don't know how. In response to your question -- I tried both, local system account and as myself. No luck either way. Actually, I pared down my simple script to an even simpler script. I mod-ed it to do nothing when service is running... just go to sleep for 30. Nada. No change whatsoever. It just simply fails to start.