Sunday, 23 April 2017

How to create a service on Node JS?

I create a service using https://support.microsoft.com/en-us/help/251192/how-to-create-a-windows-service-by-using-sc.exe

The creation line is about such

Sc create Element2 binPath="C:\Program Files\nodejs\node C:\Program Files\Element2\index.js --config C:\ProgramData\Element2\config.js" DisplayName="Элемент 2" start=auto

The service is created, but when it starts, an error pops up: Error 1053 The service did not respond to the request in a timely manner.

What could be the problem?



via Khusamov Sukhrob

No comments:

Post a Comment