Skip to content

Commit

Permalink
Merge pull request moby#48513 from thaJeztah/windows_svc_consts
Browse files Browse the repository at this point in the history
cmd/dockerd: use golang.org/x/sys/windows/service param-change consts
  • Loading branch information
thaJeztah authored Sep 17, 2024
2 parents 6bfeb5f + 0aebbd0 commit 408f51b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/dockerd/service_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (h *handler) Execute(_ []string, r <-chan svc.ChangeRequest, s chan<- svc.S
return true, 1
}

s <- svc.Status{State: svc.Running, Accepts: svc.AcceptStop | svc.AcceptShutdown | svc.Accepted(windows.SERVICE_ACCEPT_PARAMCHANGE)}
s <- svc.Status{State: svc.Running, Accepts: svc.AcceptStop | svc.AcceptShutdown | svc.AcceptParamChange}
log.G(context.TODO()).Debug("Service running")
Loop:
for {
Expand All @@ -312,7 +312,7 @@ Loop:
break Loop
case c := <-r:
switch c.Cmd {
case svc.Cmd(windows.SERVICE_CONTROL_PARAMCHANGE):
case svc.ParamChange:
h.daemonCLI.reloadConfig()
case svc.Interrogate:
s <- c.CurrentStatus
Expand Down

0 comments on commit 408f51b

Please sign in to comment.