Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Service not Auto Starting on reboot [closed]

I have done some Researching and implemented some additions from the Questions that I found here on StackOverFlow. but I am still having issues with the service not auto-starting

here are some of the Questions/Answers that I have read

  1. How To Auto Start Windows Service
  2. Automatically start a windows Service on install
  3. Auto Start Windows Services through installer in vs net 2008
  4. How to Automatically start your service after install

I set the Start Type in my Installer code

I set the after install Code

I tested by rebooting, nothing.

uninstalled, re installed, started service and then reboot again, service didn't auto start on reboot.

I made sure every time I made a change that I did a rebuild on the project and the setup project before a fresh install.

I am not finding much for my current situation, when searching Google either.

am I missing something?

like image 739
Malachi Avatar asked Apr 18 '13 21:04

Malachi


People also ask

How do I start Windows service after reboot?

To fix this problem, use one of the following methods: Set the Startup type of the service to Automatic (Delayed Start). Create a scheduled task to start SQL server service after a computer restart, and set a one-minute delay for the task. Disable DAD on the computer.


1 Answers

If your service StartType is set to Automatic, but the service is not running after a reboot, then either your service has a dependency on another service that is not starting correctly, or your service's own startup code is failing and ends up stopping the service. Check the Windows Event Log for errors (if you are not logging your own errors, you should be).

like image 149
Remy Lebeau Avatar answered Nov 16 '22 01:11

Remy Lebeau