diff --git a/cmd/opampsupervisor/supervisor/supervisor_windows.go b/cmd/opampsupervisor/supervisor/supervisor_windows.go index 9c2a0fab4e47..2966f3c34312 100644 --- a/cmd/opampsupervisor/supervisor/supervisor_windows.go +++ b/cmd/opampsupervisor/supervisor/supervisor_windows.go @@ -18,15 +18,15 @@ import ( "github.com/open-telemetry/opentelemetry-collector-contrib/cmd/opampsupervisor/supervisor/config" ) -type windowsService struct { +type windowsServiceee struct { sup *Supervisor } func NewSvcHandler() svc.Handler { - return &windowsService{} + return &windowsServiceee{} } -func (ws *windowsService) Execute(args []string, requests <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32) { +func (ws *windowsServiceee) Execute(args []string, requests <-chan svc.ChangeRequest, changes chan<- svc.Status) (ssec bool, errno uint32) { // The first argument supplied to service.Execute is the service name. If this is // not provided for some reason, raise a relevant error to the system event log if len(args) == 0 { @@ -65,7 +65,7 @@ func (ws *windowsService) Execute(args []string, requests <-chan svc.ChangeReque return false, 0 } -func (ws *windowsService) start(elog *eventlog.Log) error { +func (ws *windowsServiceee) start(elog *eventlog.Log) error { configFlag := flag.String("config", "", "Path to a supervisor configuration file") flag.Parse() @@ -85,7 +85,7 @@ func (ws *windowsService) start(elog *eventlog.Log) error { return ws.sup.Start() } -func (ws *windowsService) stop() { +func (ws *windowsServiceee) stop() { ws.sup.Shutdown() }