in reply to Win32::Daemon problem
I think you want to reduce that sleep 100 to something smaller, like sleep 2. If you need a longer sleep, then split it up and do a Win32::Daemon::State() call between each one. The Win32 service control manager polls all active services every now and then and it needs to receive a response within 15 seconds or so, otherwise it says that the service isn't responding. IIRC, Dave mentions this in the docs.#...snip elsif ( SERVICE_RUNNING == $State ) { if ($DEBUG) { verbose("Service Running"); } if ( $DEBUG ) { verbose ("Waiting 100 seconds to continue\n"); } sleep(100); } #...snip
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Win32::Daemon problem
by cruelty (Novice) on Sep 20, 2001 at 21:56 UTC | |
by $code or die (Deacon) on Sep 21, 2001 at 03:44 UTC |