I have a file "init.cmd" which has the following commands inside it:
set APP_ROOT=c:/wamp/www/myproj
ringo -b %APP_ROOT%/bin/init.js %APP_ROOT%/app/main.js
The file works fine when run from the command line, but I'd like to turn it into a Windows Service.
So I type:
sc create MyServiceName binPath= c:/wamp/www/myproj/bin/init.cmd
The service is created, but everytime I try to start it, it crashes saying:
Error 1053: The service did not respond to the start or control request in a timely fashion.
I have a similar problem w/ Mongo, which is much simpler.
From a command prompt typing:
c:/mongodb/bin/mongod
successfully starts the mongo server.
But trying to install a service as :
sc create mongo binPath= c:\mongodb\bin\mongod.exe
crashes on start everytime with the same error as above.