Windows service automatic

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Hi

I've created a windows service and it is set to run under local system
account. But after its installed and after reboot when I check in the
services its still sitting there and have not automatically started ?
but next to it the start mode does say 'automatic' instead of manual.

so how I get it to start after every reboot ?

Thanks
Tom
 
Never had this problem with any Windows service I've written.


Check whether you have a bug in the service's startup code that is causing a
crash, perhaps?
 
JV said:
Never had this problem with any Windows service I've written.


Check whether you have a bug in the service's startup code that is causing a
crash, perhaps?
there is no bug I checked in the event log and also when I manually
start it starts fine....

Thanks
Tom
 
I know it's been a while but I had a hard time with this one myself...
You can find some suggestions on the net that it may have something to do
with service dependencies, especially with the Eventlog service. In my case
problem was all about NET performance during system startup. You have to
create (or modify existing) registry DWORD value "ServicesPipeTimeout" in
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control" - I set it to 60000
(in miliseconds) and my service autostarts fine. Infuriatingly simple:-/

Jan
 
Hi,

I remember that thread, but never understood what happens.
I will start writing a service in the near future and thanks for
that good pointer!!!

Best regards,
Manfred Braun

(Private)
Mannheim
Germany

mailto:[email protected]
(Remove the anti-spam-underscore to mail me!)
 
Back
Top