Change restart delay for Windows service to 15s
Previously we waited for 60 seconds after the service faults to restart it. However, there isn't much benefit to waiting this long. We expect 15 seconds to be a more reasonable delay. Co-Authored-by: Kevin Parsons <kevpar@microsoft.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
3c585e6567
commit
624daf8d9e
1 changed files with 2 additions and 2 deletions
|
@ -189,8 +189,8 @@ func registerService() error {
|
|||
|
||||
err = s.SetRecoveryActions(
|
||||
[]mgr.RecoveryAction{
|
||||
{Type: mgr.ServiceRestart, Delay: 60 * time.Second},
|
||||
{Type: mgr.ServiceRestart, Delay: 60 * time.Second},
|
||||
{Type: mgr.ServiceRestart, Delay: 15 * time.Second},
|
||||
{Type: mgr.ServiceRestart, Delay: 15 * time.Second},
|
||||
{Type: mgr.NoAction},
|
||||
},
|
||||
uint32(24*time.Hour/time.Second),
|
||||
|
|
Loading…
Reference in a new issue