diff --git a/client/cmd/service_installer.go b/client/cmd/service_installer.go index da6beef4ff9..5e147262bb4 100644 --- a/client/cmd/service_installer.go +++ b/client/cmd/service_installer.go @@ -64,6 +64,10 @@ var installCmd = &cobra.Command{ } } + if runtime.GOOS == "windows" { + svcConfig.Option["OnFailure"] = "restart" + } + ctx, cancel := context.WithCancel(cmd.Context()) s, err := newSVC(newProgram(ctx, cancel), svcConfig)