Skip to content

Commit 1c5b384

Browse files
authored
Merge pull request #3313 from kevpar/service-restart-delay
Change restart delay for Windows service to 15s
2 parents 0e7a3c9 + cee19d1 commit 1c5b384

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)