Menu

#141 Setting service's revovery options

Unscheduled
closed
nobody
services (2)
Feature
5
2015-03-25
2015-01-08
Anonymous
No

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.

Discussion

  • Anonymous

    Anonymous - 2015-01-08

    Not currently. I can add it to the list for the next release. Let me know if you need it urgently.

    /Ashok

     
  • Anonymous

    Anonymous - 2015-01-09

    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.

     
  • Ashok P. Nadkarni

    • status: open --> closed
     
  • Ashok P. Nadkarni

    Added in 4.1b17

     
  • Anonymous

    Anonymous - 2015-01-28

    Hi! I've tried new function set_service_failure_actions and I found some issues:

    1. When I don't specify option -resetperiod I'm receiving exception:
      Non-integer value 'infinite' specified for option '-resetperiod'.

    2. 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
  • Ashok P. Nadkarni

    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

     
  • Ashok P. Nadkarni

    • status: closed --> open
     
  • Anonymous

    Anonymous - 2015-01-30

    I've tested your release and both issues seem to be fixed.
    Thanks!

    RP.

     

    Last edit: RP. 2015-01-30
  • Ashok P. Nadkarni

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB