takama / daemon

A daemon package for use with Go (golang) services
MIT License
1.96k stars 292 forks source link

Cannot find windows process when it has spaces in it #108

Closed Steve-Rennie closed 1 year ago

Steve-Rennie commented 1 year ago

Some Windows Services that I'm trying to access have spaces in them, but due to the fact that Daemon replaces any spaces in a service name with underscores it never correctly finds the service. https://github.com/takama/daemon/blob/496d69192531c6cb1004380a0be0fcf2031b06f4/daemon.go#L261

https://github.com/takama/daemon/commit/a26c6dae11e21d9010e25c5748d84ec18b6ab920