[Win32utils-devel] Need help with win32-service, failure actions

Daniel Berger djberg96 at gmail.com
Tue Nov 20 00:36:12 EST 2007


Heesob Park wrote:

<snip>

> Be careful of the UI display unit.
>  
> The following code works fine in my test.
>  
>    Service.configure('Service_Desktop', nil,
>       :failure_reset_period   =>  172800,                        # 3600 
> * 24 * 2 seconds -> 2 days
>       :failure_command        => "notepad.exe ",
>       :failure_delay          => 180000,                            
> # 1000 * 60 * 3 milliseconds -> 3 minutes
>       :failure_reboot_message => "This is a test of the Notepad service!",
>       :failure_actions        => [
>          Service::ACTION_RESTART,
>          Service::ACTION_RUN_COMMAND,
>          Service::ACTION_REBOOT
>       ]
>    )

Aha, you're correct. I just hadn't set the values high enough. :)

With that done (and rubygems 0.9.5 released), things are looking good 
for an 0.6.0 release soon. I just want to add some more tests, and tidy 
up the documentation.

Regards,

Dan


More information about the win32utils-devel mailing list