win32-service で新しいサービスを作成していますが、failure_reset_period の意味は何ですか?
他のオプション (failure_reboot_message、failure_command、failure_actions、failure_delay) と例についてもいくつかの言葉をいただければ幸いです。
前もって感謝します。
win32-service で新しいサービスを作成していますが、failure_reset_period の意味は何ですか?
他のオプション (failure_reboot_message、failure_command、failure_actions、failure_delay) と例についてもいくつかの言葉をいただければ幸いです。
前もって感謝します。
使用例:
Service.new(
:service_name => SERVICE_NAME,
:display_name => SERVICE_DISPLAYNAME,
:start_type => Service::AUTO_START,
:error_control => Service::ERROR_NORMAL,
:service_type => Service::WIN32_OWN_PROCESS,
:description => 'This service does blah blah..',
:binary_path_name => path,
:failure_reset_period => 86400, # period (in seconds) with no failures after which the failure count should be reset to 0
:failure_actions => [ Service::ACTION_RESTART ], # action to take
:failure_delay => 60000 # delay before action in milliseconds
)
failure_reset_period
指定した時間後にサービスの失敗回数を 0 にリセットします。これは、サービスの 1 回目、2 回目、およびその他の失敗に対して異なるアクションを構成できるため便利です。
これらのオプションの意味は、ここで説明されていfailure_reset_period
ます。
サービスの失敗回数がリセットされるまでの日数