According to the document, all Windows service recovery action related options (OnFailure*) have default values. However, the OnFailure option must be specified for these default values to take effect.
|
if onFailure := ws.Option.string(OnFailure, ""); onFailure != "" { |
If OnFailure is not set or is set to an empty string, all related options will be ignored, and the recovery action itself will not be configured.
According to the document, all Windows service recovery action related options (OnFailure*) have default values. However, the
OnFailureoption must be specified for these default values to take effect.service/service_windows.go
Line 317 in becf2eb
If
OnFailureis not set or is set to an empty string, all related options will be ignored, and the recovery action itself will not be configured.