Node.JS windows service cannot start -


i'm using windows-service package run script windows service.

if (process.argv[2] == "--add") {     logger.info('starting add service', global.approot + "\\app.js")     ws.add (config.service_name, {programpath: global.approot + "\\app.js"});     logger.info('service added', config.service_name, global.approot + "\\app.js") } else if (process.argv[2] == "--remove") {     logger.info('removing service', config.service_name)     ws.remove (config.service_name);     logger.info('service removed', config.service_name) } else if (process.argv[2] == "--run") {     logger.info('starting service', config.service_name);     ws.run (logger, function() {         logger.info('stopping service', config.service_name);         ws.stop()         logger.info('service stopped')           }); } else if (process.argv[2] == "--stop") {     logger.info('stopping service', config.service_name);     ws.stop()     logger.info('service stopped') } 

after running "node service.js --add", have verified windows service installed correctly command below

"c:\program files\nodejs\node.exe" "e:\utils\app.js" 

i pasted command node.js command prompt , launched script correctly.

however, when tried start windows service service console, complains

error 1053: service did not respond start or control request in timely fashiion.  

i tried "node service.js --run", prints out "starting service" message , hangs there. underlying script isn't kicked off either.

verified service log, no error. no script-specific log generated.

all script objects using global.apppath absolute path reference.

i run out of ideas. advice on matter?


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -