windows server 2008 r2 - Automatic services do not start -


i have handful of console apps installed services running under topshelf , if install , run manually work fine. none automatically start though startup type set automatic.

the apps configured follows:

hostfactory.run(x => {     x.service<myapp>(s =>     {         s.constructusing(name => container.resolve<myapp>());         s.whenstarted(tc => tc.start());         s.whenstopped(tc =>         {             tc.stop();             container.dispose();         });     });      x.runaslocalsystem();     x.startautomatically();     x.enableservicerecovery(rc => rc.restartservice(5)); }); 

the apps run under win 2008 r2 , installed using batch file executed admin. batch file includes following:

app.exe install --sudo app.exe start 

after executing the batch file services run expected. if reboot remain stopped.

the event log returns same pair of events each service:

event 7000: service failed start due following error: service did not respond start or control request in timely fashion.

event 7009: timeout reached (30000 milliseconds) while waiting service connect.

the way start app after reboot run app.exe start elevated command prompt.

any ideas?

ok i've fixed it. service startup types set automatic i've changed them automatic (delayed) , run on start-up.

also i've modified install batch files future use:

app.exe install --delayed --sudo app.exe start 

only guess, dependent on network services might not available.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -