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>
(cherry picked from commit 624daf8d9e
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e1b240d6bd
commit
671bf589e2
1 changed files with 2 additions and 2 deletions
|
@ -188,8 +188,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…
Add table
Reference in a new issue