Since Windows Server 2008 R2 (and Windows 7 I think for the client OS) Microsoft has introduced trigger start
for services. I do understand difference between automatic
, automatic (delayed)
and manual
startup types. From what I read on googled articles, I believe I do understand logic of trigger start
(though never used that).
What I'm not really sure I understand would be difference of services that are configured to automatic (trigger start)
and manual (trigger start)
and I had no luck to find any explanation for this.
I am sort of thinking that in both cases service is not running unless trigger will start it, so what would be the difference actually?
Reason I have encountered this question is actually monitoring of automatic startup type services. Since the service is set to start with trigger and trigger is not valid, service is not running and monitoring is reporting it the way, that automatic service is not running.
To sum up – my questions are:
- What is difference between
automatic (trigger start)
andmanual (trigger start)
service? - Can it have any impact to service/application (in general) if service will be switched from
automatic (trigger start)
tomanual (trigger start)
?
Best Answer
Automatic services start when the OS boots. Manual services do not. Triggers can be added to services to make them start on some event, such as an ETW event, or a USB device being plugged in, etc. Triggers can be added to either Manual or Automatic services.
An example of the trigger(s) on an Automatic (Trigger Start) service:
An example of the trigger(s) on a Manual (Trigger Start) service:
A service can be set to Automatic, so that it starts as soon as the OS loads, but it can also stop gracefully on its own when the service has no more work to do. After it has stopped, a trigger can start it again at any time.
So to recap, both Automatic and Manual services can have triggers that manually start them. The only difference is that Automatic services start as soon as the operating system loads.