Closed oliveirag closed 6 years ago
There is no way to set the PID using the underlying winsw library, so it's not possible to set it. A feature to retrieve the PID from the install
event would be possible, but I'm not going to have time to add that anytime soon (PR welcome).
If your service happens to be using a port (i.e. a web/net server), another possible option would be porthog. This will retrieve the PID for a process on any given port.
It would be useful for killing the process. Setting the id of the service instead of just calling it name.exe would also be good.