Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are shutdown scripts not guaranteed?

Tags:

People also ask

Does a shutdown script run on restart?

The autostart of programs or scripts during shutdown of the system has two caveats that need to be mentioned. First, that the functionality is only found in professional or Enterprise editions of Windows and not in Home versions, and second, that the scripts or programs are run on every shutdown or restart.


In the documentation it says that shutdown scripts are only run on a best effort basis and that they are not guaranteed to run. I'm wondering what conditions these would be where they wouldn't run?

Edit

As AndyJ pointed out, the documentation I linked to describes when the script is supposed to be run. To clarify, I have read all of that but it seemed to me that the lack of guarantee to run included the conditions in which it normally is supposed to.

So, to better phrase my question, is the script guaranteed to run in the conditions the documentation says it runs it, or is that only when it should and not necessarily when it will?