There's more than one way to do things | |
PerlMonks |
Re: Can Win32::Daemon access remote shares?by Jenda (Abbot) |
on Apr 13, 2003 at 18:43 UTC ( [id://250156]=note: print w/replies, xml ) | Need Help?? |
As buk said, the problem is most likely in the premissions. If your service runs under the LocalSystem account it doesn't have acccess the WINDOWS networking. You have to run the service under some different account. On "the re-execing": Win32::Daemon::Simple tries its best to prevent the service from crashing. It will write the error into the log file and try to continue. If you want to make more noise at this time you can either
If you think it would be helpfull I can update Win32::Daemon::Simple to send a network message ("net send ...") to somewhere if your callback dies and optionaly to even stop the service. I'd say ... if the Params=> option of use Win32::Daemon::Simple contains MessageOnError=> it would send the network alert to the specified username/computer. And then another option StopOnError would control whether to "re-exec" or stop. Something like this:
Does that look OK? If anyone has some other suggestions, send them to me. I might even implement them ;-) Jenda Edit by castaway: Closed small tag in signature
In Section
Seekers of Perl Wisdom
|
|