S
S
SerjAntiquity2015-05-08 14:03:00
Windows
SerjAntiquity, 2015-05-08 14:03:00

How to create a service to run node.js on windows?

Good day!
Guys help with the problem, I'm trying to make a service to manage node.js, but something doesn't work out for me. I
tried various manuals using nssm and the winser module, I get a service that says Unexpected status SERVICE_PAUSED in response to START control. and the service stays in "paused" status.
I tried to create a batch file, write
cd path\to\Server.js
path\to\node.exe Server.js into it,
if I run it from the terminal, everything starts, if I create a service via sc and specify binPath before the batch file, then when I start the service I get an error Error 1053 The service did not respond to the start.
Googling didn't lead to anything.
nobody faced such problems?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Shemsedinov, 2015-05-08
@MarcusAurelius Node.js tag curator

runasservice.sourceforge.net
https://support.microsoft.com/en-us/kb/251192

T
tex0, 2015-05-08
@tex0

Tyts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question