SetGlobalStatus assigns the channel through which status updates will be sent to the SCM. This is typically provided by the service handler when the service starts.
(status chan<- svc.Status)
| 29 | // will be sent to the SCM. This is typically provided by the service |
| 30 | // handler when the service starts. |
| 31 | func SetGlobalStatus(status chan<- svc.Status) { |
| 32 | globalStatus = status |
| 33 | } |
| 34 | |
| 35 | // Ready notifies the SCM that the service is fully running and ready |
| 36 | // to accept stop or shutdown control requests. |