I have a nodeJS application that interacts with a third-party application installed as a Windows service. My nodeJS application requires this service to work, however, if in some cases it is not.
I am trying to find a method to test the health of this Windows service and not start it. After many days of searching, I found a lot of results for starting the nodeJS application as a Windows service, but not for making it possible to start / stop already installed Windows services.
Is it possible? I found tools like PSEXEC, so I could get nodeJS to run such a script, but it would be preferable if nodeJS could complete this task initially.
Any information for this purpose would be very useful, and it is difficult for me to believe that others were not in a situation where they also needed it.
Stephen
source share