Setting service's revovery options
Brought to you by:
apnadkarni
Is it possible to set service's revovery options in twapi::create_service and twapi::set_service_configuration API? I mean to set actions ("First failure", "Second failure", "Subsequent failures" etc.) that are in "Recovery" tab in windows service properties dialog.
Anonymous
Not currently. I can add it to the list for the next release. Let me know if you need it urgently.
/Ashok
Thanks for the reply. It's not urgent, but I will be happy to use it when it appears in release. For now I can create service using API and change recovery properties manually.
Added in 4.1b17
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Hi! I've tried new function set_service_failure_actions and I found some issues:
When I don't specify option -resetperiod I'm receiving exception:
Non-integer value 'infinite' specified for option '-resetperiod'.
When I use this option I'm receiving another error:
% twapi::set_service_failure_actions $service_name -actions {{restart 1000}} -resetperiod 0
Incorrect number of arguments.
Maybe I do something wrong?
RP.
Last edit: Anonymous 2015-01-28
No, more likely my fault. I realize that in my hurry to release twapi I forgot to add a test case for setting :-( I'll check tomorrow and see what the issue is.
Sorry about that
/Ashok
OK, I've uploaded a new version at http://sourceforge.net/projects/twapi/files/Development%20Releases/twapi-4.1b20.zip/download
Please try this (4.1b20) and let me know if this works better.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
I've tested your release and both issues seem to be fixed.
Thanks!
RP.
Last edit: RP. 2015-01-30