renodino has asked for the wisdom of the Perl Monks concerning the following question:
I'm installing a Perl app as a Win32 Service via Win32::Daemon. Got that all working fine (tho ithreads seem to be doing odd things).
However, when I open the Control Panel->Administrative Tools->Services tool and check on the Recovery properties, they all indicate "Take no action" when the service fails. I'd like to have the service simply restart (up to 3 times, then fail hard). I can't find any i/f to Win32::Daemon::CreateService() to specify that behavior.
Does anyone know of a hash parameter to specify that recovery behavior ?
Update:
After some research, I've discovered the short answer is, "No.".
According to this, setting the the autorecovery actions requires an API call that grep indicates doesn't exist in Win32::Daemon. So either I hack Win32::Daemon, or I just tell my users to open the Admin->Service tool and set things themselves. <sigh/>. Guess it'll be the latter, as I don't have time for the former.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::Daemon::CreateService to set autorecovery ?
by hackdaddy (Hermit) on Dec 16, 2005 at 08:07 UTC | |
by renodino (Curate) on Dec 16, 2005 at 18:09 UTC | |
by hackdaddy (Hermit) on Dec 17, 2005 at 15:19 UTC | |
by renodino (Curate) on Dec 17, 2005 at 16:44 UTC |