acceptHammerCode = svc.Accepted(hammerCode)
)
-
type gracefulManager struct {
isChild bool
lock *sync.RWMutex
if setting.StartupTimeout > 0 {
status <- svc.Status{State: svc.StartPending}
} else {
- status <- svc.Status{State: svc.StartPending, WaitHint: uint32(setting.StartupTimeout/time.Millisecond)}
+ status <- svc.Status{State: svc.StartPending, WaitHint: uint32(setting.StartupTimeout / time.Millisecond)}
}
// Now need to wait for everything to start...
break loop
case hammerCode:
g.doShutdown()
- g.doHammerTime(0 *time.Second)
+ g.doHammerTime(0 * time.Second)
break loop
default:
log.Debug("Unexpected control request: %v", change.Cmd)
}
status <- svc.Status{
- State: svc.StopPending,
- WaitHint: uint32(waitTime/time.Millisecond),
+ State: svc.StopPending,
+ WaitHint: uint32(waitTime / time.Millisecond),
}
hammerLoop: