I have simplest possible windows service.
I need service to run under Local System account.
If I start/stop service from SCM, everything works f
Microsoft Windows has added an option called Fast Startup
which does not actually shutdown the computer.
As noted in the Fast Startup
setting description, Restart
isn't affected. This is why the Restart
triggers OnShutdown
and Shutdown
does not.
Turning off Fast Startup
will trigger OnShutdown
for both Restart
and Shutdown
.