We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f536ff commit ff64ab1Copy full SHA for ff64ab1
services/boot.go
@@ -29,7 +29,7 @@ func StartedAtBoot() bool {
29
if reason, err := svc.DynamicStartReason(); err == nil {
30
startedAtBoot = (reason & svc.StartReasonAuto) != 0 || (reason & svc.StartReasonDelayedAuto) != 0
31
} else if errors.Is(err, windows.ERROR_PROC_NOT_FOUND) {
32
- // This is an ugly hack for Windows 7, which hopefully we'll be able to remove down the road.
+ // TODO: Below this line is Windows 7 compatibility code, which hopefully we can delete at some point.
33
startedAtBoot = windows.DurationSinceBoot() < time.Minute*10
34
} else {
35
log.Printf("Unable to determine service start reason: %v", err)
0 commit comments