Skip to content

Commit cee19d1

Browse files
committed
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. Signed-off-by: Kevin Parsons <[email protected]>
1 parent b7f093e commit cee19d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/containerd/command/service_windows.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,8 @@ func registerService() error {
270270
Delay uint32
271271
}
272272
t := []scAction{
273-
{Type: scActionRestart, Delay: uint32(60 * time.Second / time.Millisecond)},
274-
{Type: scActionRestart, Delay: uint32(60 * time.Second / time.Millisecond)},
273+
{Type: scActionRestart, Delay: uint32(15 * time.Second / time.Millisecond)},
274+
{Type: scActionRestart, Delay: uint32(15 * time.Second / time.Millisecond)},
275275
{Type: scActionNone},
276276
}
277277
lpInfo := serviceFailureActions{ResetPeriod: uint32(24 * time.Hour / time.Second), ActionsCount: uint32(3), Actions: uintptr(unsafe.Pointer(&t[0]))}

0 commit comments

Comments
 (0)