coreybutler / node-windows

Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
Other
2.8k stars 356 forks source link

Possible to use events for already existing services? #194

Closed mpathy closed 6 years ago

mpathy commented 6 years ago

I use node-windows, node-linux, node-osx for installing new services and control them, but I also would like to monitor already existing services for a monitoring tool.

Is it possible to use the nice event emitters of those three plugins to "monitor" existing services?

coreybutler commented 6 years ago

At the moment, there's no easy way to tap into an existing service. Handling events depends on an accessible wrapper, which is how the install process is able to handle events.

I like this concept and I'd be open to a PR across all three modules if someone wants to implement it.