1

I'm trying to run a Node.js http server through cygwin as a service, so that it continues to run even once I've logged out (machine still running). The closest I've been able to find is:

cygrunsrv -I service_name-p path [-a arguments] 
   [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]

used as

cygrunsrv -I nodeserver -p /usr/local/bin/node -a ~/server.js 

but that doesn't seem to run properly... Not sure what I'm doing wrong or if this is possible

1 Answer 1

1

D'oh, seems like node-worker was the cause behind the probem. It runs but that part of the pie wasn't working... Oh well. At least I figure it out.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.